Skip to content

Commit 2492c26

Browse files
645: Fixed bug
1 parent 548359f commit 2492c26

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/com/magento/idea/magento2plugin/stubs/indexes/js/RequireJsIndex.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)