From 2d1e383026ef31fc547da9514744c3dafbbff452 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Fri, 13 Mar 2015 09:21:31 +0100 Subject: [PATCH] IDEA-137554 NPE at com.intellij.util.xmlb.MapBinding.deserializeKeyOrValue --- platform/util/src/com/intellij/util/xmlb/MapBinding.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/util/src/com/intellij/util/xmlb/MapBinding.java b/platform/util/src/com/intellij/util/xmlb/MapBinding.java index c9e9476c77f4..ece96e40d569 100644 --- a/platform/util/src/com/intellij/util/xmlb/MapBinding.java +++ b/platform/util/src/com/intellij/util/xmlb/MapBinding.java @@ -187,7 +187,8 @@ class MapBinding extends Binding implements MultiNodeBinding, MainBinding { } } else { - List children = entry.getChild(attributeName).getChildren(); + Element entryChild = entry.getChild(attributeName); + List children = entryChild == null ? Collections.emptyList() : entryChild.getChildren(); if (children.isEmpty()) { return null; }