From: Andreas Beeker Date: Mon, 20 Apr 2020 08:27:36 +0000 (+0000) Subject: fix integration test error X-Git-Tag: before_ooxml_3rd_edition~306 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=30280a9e5a2bc32d39a377a165be09fbcc70d990;p=poi.git fix integration test error git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876741 13f79535-47bb-0310-9956-ffa450edef68 --- 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) {