Skip to content

Commit 94d4456

Browse files
committed
1269: static fix
1 parent f6ec3e3 commit 94d4456

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0).
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)
1313
- Covered possible NullPointerException in InjectAViewModelDialog.java [#1213](https://github.com/magento/magento2-phpstorm-plugin/pull/1213)
14+
- AWT events are not allowed inside write action [#1271](https://github.com/magento/magento2-phpstorm-plugin/pull/1271)
1415

1516
## 5.0.0
1617

src/com/magento/idea/magento2plugin/actions/generation/generator/ModuleGraphQlResolverClassGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ public ModuleGraphQlResolverClassGenerator(
6464

6565
@Override
6666
public PsiFile generate(final String actionName) {
67-
final PsiFile[] graphQlFile = {null};
6867

6968
final PhpClass[] graphQlResolverClass = {GetPhpClassByFQN.getInstance(project)
7069
.execute(graphQlResolverFileData.getGraphQlResolverClassFqn())};
@@ -90,6 +89,7 @@ public PsiFile generate(final String actionName) {
9089
return null;
9190
}
9291

92+
final PsiFile[] graphQlFile = {null};
9393
WriteCommandAction.runWriteCommandAction(project, () -> {
9494
final Properties attributes = new Properties();
9595
final String methodTemplate = PhpCodeUtil.getCodeTemplate(

0 commit comments

Comments
 (0)