EA-108201 - NPE: GotoActionModel$ActionWrapper.isAvailable

This commit is contained in:
Sergey Ignatov
2017-10-25 17:39:39 +03:00
committed by Alexander Kass
parent 447350c3eb
commit 5cdf13aba2
@@ -503,7 +503,8 @@ public class GotoActionModel implements ChooseByNameModel, Comparator<Object>, D
}
public boolean isAvailable() {
return hasPresentation() && getPresentation().isEnabledAndVisible();
Presentation presentation = getPresentation();
return presentation != null && presentation.isEnabledAndVisible();
}
public Presentation getPresentation() {