Author: kiwiwings
Date: Thu May  4 01:13:48 2017
New Revision: 1793733

URL: http://svn.apache.org/viewvc?rev=1793733&view=rev
Log:
test integration fix

Modified:
    poi/trunk/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java

Modified: 
poi/trunk/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java?rev=1793733&r1=1793732&r2=1793733&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java 
(original)
+++ poi/trunk/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java 
Thu May  4 01:13:48 2017
@@ -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) {



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to