mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
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:
parent
1d63ba79f4
commit
49fc2a7a1c
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user