Potential NPE in PPExtractor; found while working on TIKA-1171

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1527041 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Tim Allison 2013-09-27 19:35:14 +00:00
parent 1e8ffef6a6
commit 3e1208af44

View File

@ -231,6 +231,7 @@ public final class PowerPointExtractor extends POIOLE2TextExtractor {
}
TextShape tsh = (TextShape)sh;
String text = tsh.getText();
if (text != null){
ret.append(text);
if (!text.endsWith("\n")) {
ret.append("\n");
@ -239,6 +240,7 @@ public final class PowerPointExtractor extends POIOLE2TextExtractor {
}
}
}
}
for (int i = 0; i < _slides.length; i++) {
Slide slide = _slides[i];