This is an automated email from the ASF dual-hosted git repository.

centic pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git

commit da3d64d9e3f15fa151e8abc0dd62a8aeb8b5cb49
Author: Dominik Stadler <[email protected]>
AuthorDate: Fri Jan 23 22:35:57 2026 +0100

    Add an NPE check when retrieving fonts for bullet-items
---
 .../poi/hslf/usermodel/HSLFTextParagraph.java       |   5 ++++-
 .../2cade576206d5bf9a89479446973deeda5a9b549.ppt    | Bin 0 -> 129536 bytes
 test-data/spreadsheet/stress.xls                    | Bin 77312 -> 77824 bytes
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java
 
b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java
index d7b4b3cb71..c812f0df6f 100644
--- 
a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java
+++ 
b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTextParagraph.java
@@ -714,7 +714,10 @@ public final class HSLFTextParagraph implements 
TextParagraph<HSLFShape,HSLFText
             return getDefaultFontFamily();
         }
         HSLFFontInfo ppFont = getSheet().getSlideShow().getFont(tp.getValue());
-        assert(ppFont != null);
+        if (ppFont == null) {
+            throw new IllegalStateException("Could not get font from 
slide-show for bullet-font '" + tp.getValue() + "'");
+        }
+
         return ppFont.getTypeface();
     }
 
diff --git a/test-data/slideshow/2cade576206d5bf9a89479446973deeda5a9b549.ppt 
b/test-data/slideshow/2cade576206d5bf9a89479446973deeda5a9b549.ppt
new file mode 100644
index 0000000000..265c8e505e
Binary files /dev/null and 
b/test-data/slideshow/2cade576206d5bf9a89479446973deeda5a9b549.ppt differ
diff --git a/test-data/spreadsheet/stress.xls b/test-data/spreadsheet/stress.xls
index 1539461dde..65a67126ea 100644
Binary files a/test-data/spreadsheet/stress.xls and 
b/test-data/spreadsheet/stress.xls differ


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to