File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/com/magento/idea/magento2plugin/actions/comparator Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ public CompareTemplateAction() {
49
49
*
50
50
* @param event AnActionEvent
51
51
*/
52
- @ SuppressWarnings ("PMD.NPathComplexity" )
53
52
@ Override
53
+ @ SuppressWarnings ({"PMD.CyclomaticComplexity" , "PMD.NPathComplexity" })
54
54
public void update (final @ NotNull AnActionEvent event ) {
55
55
setStatus (event , false );
56
56
final Project project = event .getData (PlatformDataKeys .PROJECT );
@@ -83,6 +83,9 @@ public void update(final @NotNull AnActionEvent event) {
83
83
}
84
84
final String originalModuleName = getOriginalModuleName (project , psiFile );
85
85
86
+ if (originalModuleName == null ) {
87
+ return ;
88
+ }
86
89
final PsiDirectory originalModuleDirectory =
87
90
new ModuleIndex (project ).getModuleDirectoryByModuleName (originalModuleName );
88
91
You can’t perform that action at this time.
0 commit comments