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
c44cf6ab38
commit
3ff9eb5f0d
@ -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());
|
||||||
|
if (_document != null) {
|
||||||
components.add(_document);
|
components.add(_document);
|
||||||
|
}
|
||||||
return components.iterator();
|
return components.iterator();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user