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:
Andreas Beeker 2016-12-21 22:03:54 +00:00
parent 765f613b71
commit 9c1836d57b
1 changed files with 3 additions and 1 deletions

View File

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