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 2019/02/22 14:41:01 UTC

[Bug 63200] New: [PATCH] Fix rare NPE on getFillPaint

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

            Bug ID: 63200
           Summary: [PATCH] Fix rare NPE on getFillPaint
           Product: POI
           Version: 4.0.x-dev
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLF
          Assignee: dev@poi.apache.org
          Reporter: bmateusz@gmail.com
  Target Milestone: ---

Created attachment 36452
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36452&action=edit
test-data/slideshow/gradient-fill-in-group.pptx

I found an edge case where calling getFillColor on a shape which calls
getFillPaint throws a NullPointerException.
The fill of the shape is gradient fill, but the CTGradientStopList is null.

Attached example pptx, test case, and the fix.

-- 
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 63200] [PATCH] Fix rare NPE on getFillPaint

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

Dominik Stadler <do...@gmx.at> changed:

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

--- Comment #2 from Dominik Stadler <do...@gmx.at> ---
Thanks for the patch, applied via r1854639 with some more changes that were
visible in our integration-tests via this sample file.

-- 
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 63200] [PATCH] Fix rare NPE on getFillPaint

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

--- Comment #1 from Mate Borcsok <bm...@gmail.com> ---
Created attachment 36453
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36453&action=edit
test case and fix for bug63200

-- 
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