mirror of https://github.com/apache/poi.git
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:
parent
765f613b71
commit
9c1836d57b
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue