Bug 64600

Summary: XWPFStyles.styleExist("MyStyle") should return false instead of raising NPE
Product: POI Reporter: Andreas Küllinger <andreas.kuellinger>
Component: XWPFAssignee: POI Developers List <dev>
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Andreas Küllinger 2020-07-14 13:24:07 UTC
XWPFStyles.styleExist should return "false" instead of raising a NPE. It is raised, if the processed document contains styles without ID's.

It should work similar getStyle within XWPFStyles.
Comment 1 Sayi 2020-07-14 16:01:31 UTC
Hi, You are right, I think this bug will be fixed.

You can review the code: https://github.com/apache/poi/pull/186
Comment 3 Andreas Küllinger 2020-07-14 16:52:49 UTC
Hi, I think fix looks good!