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 3e6167906f
commit 447350c3eb
@@ -503,7 +503,7 @@ public class GotoActionModel implements ChooseByNameModel, Comparator<Object>, D
}
public boolean isAvailable() {
return getPresentation().isEnabledAndVisible();
return hasPresentation() && getPresentation().isEnabledAndVisible();
}
public Presentation getPresentation() {