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.
1 parent 0d5fcc1 commit 69e4e3cCopy full SHA for 69e4e3c
src/com/magento/idea/magento2plugin/actions/generation/dialog/InjectAViewModelDialog.java
@@ -141,7 +141,13 @@ protected void onOK() {
141
exit();
142
return;
143
}
144
- if(targetBlockTag.getContainingFile() != null &&
+ if (targetBlockTag.getContainingFile() == null || targetBlockTag.getContainingFile().getParent() == null) {
145
+ return;
146
+ }
147
+ final String moduleName = GetModuleNameByDirectoryUtil.execute(
148
+ targetBlockTag.getContainingFile().getParent(),
149
+ project
150
+ );
151
targetBlockTag.getContainingFile().getParent() != null) {
152
final String moduleName = GetModuleNameByDirectoryUtil.execute(
153
targetBlockTag.getContainingFile().getParent(),
0 commit comments