aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2020-04-20 08:27:36 +0000
committerAndreas Beeker <kiwiwings@apache.org>2020-04-20 08:27:36 +0000
commit30280a9e5a2bc32d39a377a165be09fbcc70d990 (patch)
tree66747d83d77c7bbd74fea14830fb47d90ed51a26 /src/examples
parent661c0b66bcfbedfa307d547bafb2113c8b9978e6 (diff)
downloadpoi-30280a9e5a2bc32d39a377a165be09fbcc70d990.tar.gz
poi-30280a9e5a2bc32d39a377a165be09fbcc70d990.zip
fix integration test error
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876741 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java4
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 0f47704c97..0ac755d2d4 100644
--- a/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java
+++ b/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java
@@ -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) {