This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git
The following commit(s) were added to refs/heads/trunk by this push:
new bcc7912c8d add message to NPE
bcc7912c8d is described below
commit bcc7912c8dc284e6f1b345c9295235ecf4fdce27
Author: PJ Fanning <[email protected]>
AuthorDate: Sat Jul 26 10:25:03 2025 +0100
add message to NPE
---
.../src/main/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java
b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java
index 44bc523096..d572da627e 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java
@@ -58,7 +58,7 @@ public class XWPFParagraph implements IBodyElement, IRunBody,
ISDTContents, Para
this.document = part.getXWPFDocument();
if (document == null) {
- throw new NullPointerException();
+ throw new NullPointerException("null document in XWPFParagraph");
}
// Build up the character runs
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]