add message to NPE

This commit is contained in:
PJ Fanning 2025-07-26 10:25:03 +01:00
parent e18b5576f0
commit bcc7912c8d

View File

@ -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