diff --git a/src/scratchpad/src/org/apache/poi/hslf/extractor/PowerPointExtractor.java b/src/scratchpad/src/org/apache/poi/hslf/extractor/PowerPointExtractor.java index f416d6390..d96e2243d 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/extractor/PowerPointExtractor.java +++ b/src/scratchpad/src/org/apache/poi/hslf/extractor/PowerPointExtractor.java @@ -231,9 +231,11 @@ public final class PowerPointExtractor extends POIOLE2TextExtractor { } TextShape tsh = (TextShape)sh; String text = tsh.getText(); - ret.append(text); - if (!text.endsWith("\n")) { - ret.append("\n"); + if (text != null){ + ret.append(text); + if (!text.endsWith("\n")) { + ret.append("\n"); + } } } }