mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
EA-108201 - NPE: GotoActionModel$ActionWrapper.isAvailable
This commit is contained in:
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() {
|
||||
|
||||
Reference in New Issue
Block a user