[github-318] handle null raw text. Thanks to wanglunhui2012. This closes #318

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899508 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-04-02 08:20:57 +00:00
parent 69dff49c95
commit 8406fbc3c0

View File

@ -403,7 +403,7 @@ public class DrawTextParagraph implements Drawable {
if (ft == null) {
return getRenderableText(tr);
}
if (!tr.getRawText().isEmpty()) {
if (tr.getRawText() != null && !tr.getRawText().isEmpty()) {
switch (ft) {
case SLIDE_NUMBER: {
Slide<?, ?> slide = (Slide<?, ?>) graphics.getRenderingHint(Drawable.CURRENT_SLIDE);