Bug 62624

Summary: Regression in VBAMacroreader in 4.0.0-SNAPSHOT NPE in readProjectcProperties
Product: POI Reporter: Tim Allison <tallison>
Component: POI OverallAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 4.0.x-dev   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: triggering document

Description Tim Allison 2018-08-14 18:56:35 UTC
Created attachment 36091 [details]
triggering document

Minor regression in Macro reader

java.lang.NullPointerException
	at org.apache.poi.poifs.macros.VBAMacroReader.readProjectProperties(VBAMacroReader.java:606)
	at org.apache.poi.poifs.macros.VBAMacroReader.findProjectProperties(VBAMacroReader.java:335)
	at org.apache.poi.poifs.macros.VBAMacroReader.readMacroModules(VBAMacroReader.java:115)
	at org.apache.poi.poifs.macros.VBAMacroReader.readMacros(VBAMacroReader.java:133)
	at org.apache.tika.parser.microsoft.OfficeParser.extractMacros(OfficeParser.java:323)

In this one file 'module' is null at this point:
                        module = (VBAMacroReader.ModuleImpl)modules.get(tokens[1]);
                        module.moduleType = ModuleType.Module;
Comment 1 Tim Allison 2018-10-29 15:01:18 UTC
We need to add code to read name mappings from the PROJECTwm stream.

2.2.8 PROJECTwm Stream and 2.3.3 PROJECTwm Stream

Will commit fix once integration tests pass.
Comment 2 Tim Allison 2018-10-29 15:49:49 UTC
r1845138