We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8486929 + 46e6664 commit f26b82eCopy full SHA for f26b82e
src/com/magento/idea/magento2plugin/actions/generation/OverrideClassByAPreferenceAction.java
@@ -38,6 +38,10 @@ public OverrideClassByAPreferenceAction() {
38
public void update(final AnActionEvent event) {
39
targetClass = null;// NOPMD
40
final Project project = event.getData(PlatformDataKeys.PROJECT);
41
+
42
+ if (project == null) {
43
+ return;
44
+ }
45
if (Settings.isEnabled(project)) {
46
final Pair<PsiFile, PhpClass> pair = this.findPhpClass(event);
47
final PsiFile psiFile = pair.getFirst();
0 commit comments