]> source.dussan.org Git - poi.git/commitdiff
[github-318] handle null raw text. Thanks to wanglunhui2012. This closes #318
authorPJ Fanning <fanningpj@apache.org>
Sat, 2 Apr 2022 08:20:57 +0000 (08:20 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sat, 2 Apr 2022 08:20:57 +0000 (08:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899508 13f79535-47bb-0310-9956-ffa450edef68

poi/src/main/java/org/apache/poi/sl/draw/DrawTextParagraph.java

index 8d8aa8213d1d8874e6a7f2d19c0e1893f47619e8..4671ce34bab175c36569178fa458d9b4226c6586 100644 (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);