IDEA-137554 NPE at com.intellij.util.xmlb.MapBinding.deserializeKeyOrValue

This commit is contained in:
Vladimir Krivosheev
2015-03-13 09:21:31 +01:00
parent 5079e0900d
commit 2d1e383026
@@ -187,7 +187,8 @@ class MapBinding extends Binding implements MultiNodeBinding, MainBinding {
}
}
else {
List<Element> children = entry.getChild(attributeName).getChildren();
Element entryChild = entry.getChild(attributeName);
List<Element> children = entryChild == null ? Collections.<Element>emptyList() : entryChild.getChildren();
if (children.isEmpty()) {
return null;
}