Author: tallison
Date: Fri Sep 27 19:35:14 2013
New Revision: 1527041
URL: http://svn.apache.org/r1527041
Log:
Potential NPE in PPExtractor; found while working on TIKA-1171
Modified:
poi/trunk/src/scratchpad/src/org/apache/poi/hslf/extractor/PowerPointExtractor.java
Modified:
poi/trunk/src/scratchpad/src/org/apache/poi/hslf/extractor/PowerPointExtractor.java
URL:
http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/extractor/PowerPointExtractor.java?rev=1527041&r1=1527040&r2=1527041&view=diff
==============================================================================
---
poi/trunk/src/scratchpad/src/org/apache/poi/hslf/extractor/PowerPointExtractor.java
(original)
+++
poi/trunk/src/scratchpad/src/org/apache/poi/hslf/extractor/PowerPointExtractor.java
Fri Sep 27 19:35:14 2013
@@ -231,9 +231,11 @@ public final class PowerPointExtractor e
}
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");
+ }
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]