Skip to content

Commit

Permalink
fix #1222
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyqus committed Jan 8, 2024
1 parent 883b29c commit 3459f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ooxml/XWPF/Usermodel/XWPFDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ internal override void OnDocumentRead()
}
}
// Sort out headers and footers
if (doc.Document.body.sectPr != null)
if (doc.Document.body?.sectPr != null)
headerFooterPolicy = new XWPFHeaderFooterPolicy(this);

// Create for each XML-part in the Package a PartClass
Expand Down

0 comments on commit 3459f55

Please sign in to comment.