Fix 0-pointer on unset document

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1775565 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
kiwiwings 2016-12-21 22:03:54 +00:00
parent c44cf6ab38
commit 3ff9eb5f0d

View File

@ -134,7 +134,9 @@ public class DocumentNode
List<Object> components = new ArrayList<Object>(); List<Object> components = new ArrayList<Object>();
components.add(getProperty()); components.add(getProperty());
components.add(_document); if (_document != null) {
components.add(_document);
}
return components.iterator(); return components.iterator();
} }