You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2020/07/14 13:24:07 UTC

[Bug 64600] New: XWPFStyles.styleExist("MyStyle") should return false instead of raising NPE

https://bz.apache.org/bugzilla/show_bug.cgi?id=64600

            Bug ID: 64600
           Summary: XWPFStyles.styleExist("MyStyle") should return false
                    instead of raising NPE
           Product: POI
           Version: unspecified
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XWPF
          Assignee: dev@poi.apache.org
          Reporter: andreas.kuellinger@gmx.at
  Target Milestone: ---

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 64600] XWPFStyles.styleExist("MyStyle") should return false instead of raising NPE

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64600

--- Comment #3 from Andreas Küllinger <an...@gmx.at> ---
Hi, I think fix looks good!

Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 64600] XWPFStyles.styleExist("MyStyle") should return false instead of raising NPE

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64600

Sayi <ad...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Sayi <ad...@gmail.com> ---
Hi, You are right, I think this bug will be fixed.

You can review the code: https://github.com/apache/poi/pull/186

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 64600] XWPFStyles.styleExist("MyStyle") should return false instead of raising NPE

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64600

PJ Fanning <fa...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from PJ Fanning <fa...@yahoo.com> ---
patch merged using
https://github.com/apache/poi/commit/709a3eb32c6e92cf4e3a93c7cbcdc0a19738b662

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org