Skip to content

Commit 85d1654

Browse files
authored
Merge pull request #2553 from vitaliyboykocontributor/2516-Argument-for-@NotNull-parameter-'psiDirectory'-of-com/magento/idea/magento2plugin/util/magento/GetModuleNameByDirectoryUtil.execute
2516: Argument for @NotNull parameter 'psiDirectory' fix
2 parents a82d835 + 0c9725e commit 85d1654

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/magento/idea/magento2plugin/actions/CopyMagentoPath.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ public CopyMagentoPath() {
6969
return null;
7070
}
7171
final PsiDirectory directory = file.getContainingDirectory();
72+
if (directory == null) {
73+
return null;
74+
}
7275
final String moduleName = GetModuleNameByDirectoryUtil.execute(directory, project);
7376

7477
if (moduleName == null) {

0 commit comments

Comments
 (0)