Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
this is related to SLING-11465:
when creating a JcrPropertyMapCacheEntry from a single-valued Binary Property and convert it to a number-array, the conversion will fail with ValueFormatException.
the reason is convertToArray is called with an array constructed from the singular property value. looping over the array will call convertToType with an index != -1 which results in Long.valueOf(this.property.getLengths()[index]). however, for a single-valued property getLengths fails with ValueFormatException -> consequently null is returned instead of the length of the property.
cziegeler fyi
Attachments
Issue Links
- blocks
-
SLING-11468 Simplify JcrPropertyMapCacheEntry.convertToType
- Closed
- relates to
-
SLING-11465 NPE in JcrPropertyMapCacheEntry when converting from InputStream value to Number
- Closed