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