Skip to content

Commit 0621a8a

Browse files
author
Vitaliy Boyko
committed
1213: adjusted CHANGELOG.md
1 parent 55f6e9d commit 0621a8a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0).
1010

1111
- Throwable: Stub index points to a file without PSI [#1232](https://github.com/magento/magento2-phpstorm-plugin/pull/1232)
1212
- 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)
1314

1415
## 5.0.0
1516

src/com/magento/idea/magento2plugin/actions/generation/dialog/InjectAViewModelDialog.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,15 @@ protected void onOK() {
142142
return;
143143
}
144144

145-
if (targetBlockTag.getContainingFile() == null || targetBlockTag.getContainingFile().getParent() == null) {
146-
return;
145+
if (targetBlockTag.getContainingFile() == null
146+
|| targetBlockTag.getContainingFile().getParent() == null) {
147+
return;
147148
}
149+
148150
final String moduleName = GetModuleNameByDirectoryUtil.execute(
149151
targetBlockTag.getContainingFile().getParent(),
150152
project
151153
);
152-
153154
final NamespaceBuilder namespaceBuilder = new NamespaceBuilder(
154155
moduleName,
155156
getViewModelClassName(),

0 commit comments

Comments
 (0)