https://bz.apache.org/bugzilla/show_bug.cgi?id=64377
Bug ID: 64377
Summary: RangeCopier throw up NPE when copying range contains
empty rows
Product: POI
Version: 4.1.2-FINAL
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: POI Overall
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
On POI org.apache.poi:poi-ooxml:4.1.2. When using RangeCopier to copy a range
with null rows, RangeCopier throw up NPE as such:
Range example:
row# +--------------
0 |data data data
-----+--------------
1 | null
-----+--------------
2 |data data data
2020-04-24 17:10:33.224 [,myservice,,] ERROR https-jsse-nio-9420-exec-8
[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in
context with path [] threw exception [Request processing failed; nested
exception is java.lang.NullPointerException] with root cause
java.lang.NullPointerException: null
at
org.apache.poi.ss.usermodel.RangeCopier.copyRange(RangeCopier.java:89)
at
org.apache.poi.ss.usermodel.RangeCopier.copyRange(RangeCopier.java:68)
Here is my initial idea of patch, any suggestions are welcomed. Thanks!
https://github.com/apache/poi/pull/177
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]