Skip to content

Commit f26b82e

Browse files
Merge pull request #1116 from SilinMykola/1109-fix-bug-report
1109: Fixed argument for @NotNull parameter 'project' must not be null in the OverrideClassByAPreferenceAction
2 parents 8486929 + 46e6664 commit f26b82e

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)