File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
src/com/magento/idea/magento2plugin/actions/generation/dialog Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0).
10
10
11
11
- Throwable: Stub index points to a file without PSI [ #1232 ] ( https://github.com/magento/magento2-phpstorm-plugin/pull/1232 )
12
12
- Create an entity - delete button is displayed in a new entity form [ #1268 ] ( https://github.com/magento/magento2-phpstorm-plugin/pull/1268 )
13
+ - Covered possible NullPointerException in InjectAViewModelDialog.java [ #1213 ] ( https://github.com/magento/magento2-phpstorm-plugin/pull/1213 )
13
14
14
15
## 5.0.0
15
16
Original file line number Diff line number Diff line change @@ -141,6 +141,12 @@ protected void onOK() {
141
141
exit ();
142
142
return ;
143
143
}
144
+
145
+ if (targetBlockTag .getContainingFile () == null
146
+ || targetBlockTag .getContainingFile ().getParent () == null ) {
147
+ return ;
148
+ }
149
+
144
150
final String moduleName = GetModuleNameByDirectoryUtil .execute (
145
151
targetBlockTag .getContainingFile ().getParent (),
146
152
project
You can’t perform that action at this time.
0 commit comments