Skip to content

Commit 46e6664

Browse files
author
SilinMykola
committed
1109 fix bug
1 parent 8486929 commit 46e6664

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/com/magento/idea/magento2plugin/actions/generation/OverrideClassByAPreferenceAction.java

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ public OverrideClassByAPreferenceAction() {
3838
public void update(final AnActionEvent event) {
3939
targetClass = null;// NOPMD
4040
final Project project = event.getData(PlatformDataKeys.PROJECT);
41+
42+
if (project == null) {
43+
return;
44+
}
4145
if (Settings.isEnabled(project)) {
4246
final Pair<PsiFile, PhpClass> pair = this.findPhpClass(event);
4347
final PsiFile psiFile = pair.getFirst();

0 commit comments

Comments
 (0)