diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2017-05-04 01:13:48 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2017-05-04 01:13:48 +0000 |
commit | 3c69708b209bee62758fca3200c80d83fc64c955 (patch) | |
tree | 5d573c8195865545126cec009ac00a49a245b161 /src/examples | |
parent | 1481ca75a12883631e734839098704578ebb4c0c (diff) | |
download | poi-3c69708b209bee62758fca3200c80d83fc64c955.tar.gz poi-3c69708b209bee62758fca3200c80d83fc64c955.zip |
test integration fix
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793733 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java b/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java index c76c43f54b..8282c00576 100644 --- a/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java +++ b/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java @@ -401,11 +401,13 @@ public class CopyCompare final String name, final DocumentInputStream stream) throws IOException { + // create the directories to the document + final DirectoryEntry de = getPath(poiFs, path); + // check the parameters after the directories have been created if (stream == null || name == null) { // Empty directory return; } - final DirectoryEntry de = getPath(poiFs, path); final ByteArrayOutputStream out = new ByteArrayOutputStream(); int c; while ((c = stream.read()) != -1) { |