File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/com/magento/idea/magento2plugin/stubs/indexes/js Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,9 @@ private void parseConfigMap(
8787 configMap ,
8888 JSObjectLiteralExpression .class
8989 );
90+ if (configGroupsWrappers == null ) {
91+ return ;
92+ }
9093
9194 for (final JSObjectLiteralExpression configGroupsWrapper : configGroupsWrappers ) {
9295 final PsiElement [] configGroups = configGroupsWrapper .getChildren ();
@@ -96,6 +99,10 @@ private void parseConfigMap(
9699 configGroup ,
97100 JSObjectLiteralExpression .class
98101 );
102+
103+ if (mappingWrapper == null ) {
104+ continue ;
105+ }
99106 final JSProperty [] allConfigs = mappingWrapper .getProperties ();
100107
101108 for (final JSProperty mapping : allConfigs ) {
@@ -124,6 +131,10 @@ private void parseConfigPaths(
124131 final JSObjectLiteralExpression [] pathGroupsWrappers = PsiTreeUtil
125132 .getChildrenOfType (pathsMap , JSObjectLiteralExpression .class );
126133
134+ if (pathGroupsWrappers == null ) {
135+ return ;
136+ }
137+
127138 for (final JSObjectLiteralExpression pathGroupsWrapper : pathGroupsWrappers ) {
128139 final JSProperty [] allConfigs = pathGroupsWrapper .getProperties ();
129140
You can’t perform that action at this time.
0 commit comments