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/04/25 00:28:52 UTC
[Bug 64377] New: RangeCopier throw up NPE when copying range
contains empty rows
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: dev@poi.apache.org
Reporter: xjlin0@gmail.com
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 64377] RangeCopier throw up NPE when copying range containing
null rows
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64377
Dominik Stadler <do...@gmx.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Dominik Stadler <do...@gmx.at> ---
Resolved via r1877010
--
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 64377] RangeCopier throw up NPE when copying range containing
empty rows
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64377
xjlin0@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|RangeCopier throw up NPE |RangeCopier throw up NPE
|when copying range contains |when copying range
|empty rows |containing empty rows
--
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 64377] RangeCopier throw up NPE when copying range containing
null rows
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64377
xjlin0@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|RangeCopier throw up NPE |RangeCopier throw up NPE
|when copying range |when copying range
|containing empty rows |containing null rows
--
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