diff options
author | Sergey Vladimirov <sergey@apache.org> | 2011-08-17 14:53:28 +0000 |
---|---|---|
committer | Sergey Vladimirov <sergey@apache.org> | 2011-08-17 14:53:28 +0000 |
commit | 88c68602c426e5667671424a902118485585dec5 (patch) | |
tree | f752eb6e314abc08aa3842adc4e1ee61df2c3a01 /src/java/org/apache | |
parent | 4013bcd57caddb4bedcfcea1b3faedead5b6363f (diff) | |
download | poi-88c68602c426e5667671424a902118485585dec5.tar.gz poi-88c68602c426e5667671424a902118485585dec5.zip |
fix 51671 - HWPFDocument.write based on NPOIFSFileSystem throws a NullPointerException
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1158754 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r-- | src/java/org/apache/poi/POIDocument.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/POIDocument.java b/src/java/org/apache/poi/POIDocument.java index f3a187f7f7..fad5b47bc0 100644 --- a/src/java/org/apache/poi/POIDocument.java +++ b/src/java/org/apache/poi/POIDocument.java @@ -36,6 +36,7 @@ import org.apache.poi.poifs.filesystem.DocumentInputStream; import org.apache.poi.poifs.filesystem.Entry; import org.apache.poi.poifs.filesystem.NPOIFSFileSystem; import org.apache.poi.poifs.filesystem.POIFSFileSystem; +import org.apache.poi.util.Internal; import org.apache.poi.util.POILogFactory; import org.apache.poi.util.POILogger; @@ -262,7 +263,8 @@ public abstract class POIDocument { /** * Copies an Entry into a target POIFS directory, recursively */ - private void copyNodeRecursively(Entry entry, DirectoryEntry target) + @Internal + protected void copyNodeRecursively(Entry entry, DirectoryEntry target) throws IOException { //System.err.println("copyNodeRecursively called with "+entry.getName()+ // ","+target.getName()); |