]> source.dussan.org Git - poi.git/commitdiff
fix integration test error
authorAndreas Beeker <kiwiwings@apache.org>
Mon, 20 Apr 2020 08:27:36 +0000 (08:27 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Mon, 20 Apr 2020 08:27:36 +0000 (08:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876741 13f79535-47bb-0310-9956-ffa450edef68

src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java

index 0f47704c97dacc4598d538a8b99a736f1ce6c45a..0ac755d2d42516102be98518ac2ab50b94ed3f08 100644 (file)
@@ -169,7 +169,9 @@ public final class CopyCompare {
                     de = (de.hasEntry(subDir)) ? (DirectoryEntry)de.getEntry(subDir) : de.createDirectory(subDir);
                 }
 
-                de.createDocument(event.getName(), is);
+                if (event.getName() != null) {
+                    de.createDocument(event.getName(), is);
+                }
             }
 
         } catch (HPSFException | IOException ex) {