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(
87
87
configMap ,
88
88
JSObjectLiteralExpression .class
89
89
);
90
+ if (configGroupsWrappers == null ) {
91
+ return ;
92
+ }
90
93
91
94
for (final JSObjectLiteralExpression configGroupsWrapper : configGroupsWrappers ) {
92
95
final PsiElement [] configGroups = configGroupsWrapper .getChildren ();
@@ -96,6 +99,10 @@ private void parseConfigMap(
96
99
configGroup ,
97
100
JSObjectLiteralExpression .class
98
101
);
102
+
103
+ if (mappingWrapper == null ) {
104
+ continue ;
105
+ }
99
106
final JSProperty [] allConfigs = mappingWrapper .getProperties ();
100
107
101
108
for (final JSProperty mapping : allConfigs ) {
@@ -124,6 +131,10 @@ private void parseConfigPaths(
124
131
final JSObjectLiteralExpression [] pathGroupsWrappers = PsiTreeUtil
125
132
.getChildrenOfType (pathsMap , JSObjectLiteralExpression .class );
126
133
134
+ if (pathGroupsWrappers == null ) {
135
+ return ;
136
+ }
137
+
127
138
for (final JSObjectLiteralExpression pathGroupsWrapper : pathGroupsWrappers ) {
128
139
final JSProperty [] allConfigs = pathGroupsWrapper .getProperties ();
129
140
You can’t perform that action at this time.
0 commit comments