From 30280a9e5a2bc32d39a377a165be09fbcc70d990 Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Mon, 20 Apr 2020 08:27:36 +0000 Subject: [PATCH] fix integration test error git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876741 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/poi/hpsf/examples/CopyCompare.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.39.5