Bug 64808 - MasterPageManager.initialize() NullPointerException
Summary: MasterPageManager.initialize() NullPointerException
Status: RESOLVED INVALID
Alias: None
Product: POI
Classification: Unclassified
Component: XWPF (show other bugs)
Version: 4.1.x-dev
Hardware: PC Mac OS X 10.1
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-13 08:37 UTC by monkeyhl
Modified: 2020-10-14 03:39 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description monkeyhl 2020-10-13 08:37:22 UTC
MasterPageManager.class

private void visitHeadersFooters(IXWPFMasterPage masterPage, CTSectPr sectPr) throws Exception {
        boolean titlePage = XWPFUtils.isCTOnOff(sectPr.getTitlePg());
        xx
        xx
}
sectPr is null,so throws NullPointException,come on and fix it!
Comment 1 PJ Fanning 2020-10-13 10:46:07 UTC
http://oss.opensagres.fr/xdocreport/javadoc/1.0.3/org/apache/poi/xwpf/converter/core/MasterPageManager.html

This is not an Apache POI class despite the package name - it is from this separate project - https://github.com/opensagres/xdocreport.

You will need to raise your concerns there.

I would also appeal to you to be more friendly in your phrasing of issues. In the modern era, it is regarded as unacceptable to use language like `come on and fix it!` in public forums and to strangers who are only trying to help.
Comment 2 monkeyhl 2020-10-14 03:39:43 UTC
(In reply to PJ Fanning from comment #1)
> http://oss.opensagres.fr/xdocreport/javadoc/1.0.3/org/apache/poi/xwpf/
> converter/core/MasterPageManager.html
> 
> This is not an Apache POI class despite the package name - it is from this
> separate project - https://github.com/opensagres/xdocreport.
> 
> You will need to raise your concerns there.
> 
> I would also appeal to you to be more friendly in your phrasing of issues.
> In the modern era, it is regarded as unacceptable to use language like `come
> on and fix it!` in public forums and to strangers who are only trying to
> help.

Many thanks