]> source.dussan.org Git - poi.git/commitdiff
Fix 0-pointer on unset document
authorAndreas Beeker <kiwiwings@apache.org>
Wed, 21 Dec 2016 22:03:54 +0000 (22:03 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Wed, 21 Dec 2016 22:03:54 +0000 (22:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1775565 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/poifs/filesystem/DocumentNode.java

index 7a5bf690098612bc31a244d96ec9613c27cc6e07..fa49ae490081bb018e4d76fdfd1cf051896209b9 100644 (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();
     }