poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 63242] NullPointerException when trying to write a boxed Integer null value to a cell using setCellValue due to automatic unboxing
Date Thu, 07 Mar 2019 16:24:49 GMT

Dominik Stadler <dominik.stadler@gmx.at> changed:

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

--- Comment #1 from Dominik Stadler <dominik.stadler@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

View raw message