[
https://issues.apache.org/jira/browse/SLING-11465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Angela Schreiber updated SLING-11465:
-------------------------------------
Description:
while working on SLING-11461 trying to reduce complexity in
{{JcrPropertyMapCacheEntry}}. i spotted that this class is prone to multiple
NPEs.
in case of value being of type {{InputStream}} conversion to a number will try
to retrieve the length of the {{property}} fields, which however is null if
{{JcrPropertyMapCacheEntry}} has been created with a value and a node.
[~cziegeler] fyi
was:
while working on SLING-11461 trying to reduce complexity in
{{JcrPropertyMapCacheEntry}}. i spotted that this class is prone to multiple
NPEs.
in case of value being of type {{InputStream}} conversion to a number will try
to retrieve the length of the {{property}} fields, which however is null if
{{JcrPropertyMapCacheEntry}} has been created with a value and a node.
> NPE in JcrPropertyMapCacheEntry when converting from InputStream value to
> Number
> --------------------------------------------------------------------------------
>
> Key: SLING-11465
> URL: https://issues.apache.org/jira/browse/SLING-11465
> Project: Sling
> Issue Type: Bug
> Components: JCR
> Reporter: Angela Schreiber
> Priority: Major
>
> while working on SLING-11461 trying to reduce complexity in
> {{JcrPropertyMapCacheEntry}}. i spotted that this class is prone to multiple
> NPEs.
> in case of value being of type {{InputStream}} conversion to a number will
> try to retrieve the length of the {{property}} fields, which however is null
> if {{JcrPropertyMapCacheEntry}} has been created with a value and a node.
> [~cziegeler] fyi
--
This message was sent by Atlassian Jira
(v8.20.10#820010)