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/03/07 16:24:49 UTC

[Bug 63242] NullPointerException when trying to write a boxed Integer null value to a cell using setCellValue due to automatic unboxing

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

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

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

--- Comment #1 from Dominik Stadler <do...@gmx.at> ---
Sorry, but this is how the API is intended, not a problem that we want to fix
in Apache POI itself. Please adjust your code so you do cause a
NullPointerException in your code.

We want to ensure that we get a valid integer value in the setCellValue()
anyway, a null would be invalid and the only way to handle it would be to throw
an exception, so you need to handle this before calling the interface here.

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