https://bz.apache.org/bugzilla/show_bug.cgi?id=68163
Bug ID: 68163 Summary: VBAMacroReader throws NullPointerException for .doc file Product: POI Version: unspecified Hardware: PC Status: NEW Severity: normal Priority: P2 Component: POIFS Assignee: dev@poi.apache.org Reporter: gr...@basistech.com Target Milestone: --- I'm getting the following exception when reading a .doc file: java.lang.NullPointerException: Cannot read the array length because "<parameter1>" is null at java.base/java.lang.String.<init>(Unknown Source) at org.apache.poi.poifs.macros.VBAMacroReader$ModuleImpl.getContent(VBAMacroReader.java:175) at org.apache.poi.poifs.macros.VBAMacroReader.readMacros(VBAMacroReader.java:160) I believe the code of module.read(in) here: https://github.com/apache/poi/blob/REL_5_2_2/poi/src/main/java/org/apache/poi/poifs/macros/VBAMacroReader.java#L232 may fix the issue. I tried it in the debugger, and it seemed to resolve the NPE. Thanks for your time and great work, Greg -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org