Summary: | NullPointerException occurs when calling getDataSize() of an object created with ExtRst.copy() | ||
---|---|---|---|
Product: | POI | Reporter: | Kwon Ohyoung <ohkwon79> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | critical | CC: | ohkwon79 |
Priority: | P2 | ||
Version: | 4.1.2-FINAL | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | Patch for this error |
Description
Kwon Ohyoung
2020-09-08 11:07:26 UTC
Created attachment 37437 [details]
Patch for this error
As a result of checking the version 4.1.1 and below, I confirmed that ExtRst exists as an inner class of UnicodeString, but there is no same problem.
In the process of separating ExtRst into an independent class and replacing clone() with copy(), the process of initializing populateEmpty() seems to be missing.
Uploaded Patch: (from: /tags/REL_4_1_2)
-Modify to call this() in copy constructor ExtRst(ExtRst other)
-Add test case to detect this NullPointerException case
thanks - merged with https://github.com/apache/poi/commit/6c7bf59087e720a663fc5aec7ec5b2d502d7accd |