protected void onDocumentRead() throws IOException {
...
if (doc.getDocument().getBody().getSectPr() != null) {
...
}}
The above patch fixed the check:
if (doc.getDocument().getBody() != null && doc.getDocument().getBody().getSectPr() != null) {
In NPOI, the method is as follows:
internal override void OnDocumentRead(){
...
if (doc.Document.body.sectPr != null)
...
It should have the identical bug.
NPOI Version
master
The bug was reported to POI. The patch is as follows: https://github.com/apache/poi/commit/0654bf9d87da525765eaba7a8e7242a05c48ee02
The method of POI is as follows:
protected void onDocumentRead() throws IOException { ... if (doc.getDocument().getBody().getSectPr() != null) { ... }} The above patch fixed the check:
if (doc.getDocument().getBody() != null && doc.getDocument().getBody().getSectPr() != null) {
In NPOI, the method is as follows: internal override void OnDocumentRead(){ ... if (doc.Document.body.sectPr != null) ... It should have the identical bug.