You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2010/02/05 10:14:27 UTC

[jira] Resolved: (SLING-1352) ValueMapDecorator#get(String name, T defaultValue) throws NPE if default value is null

     [ https://issues.apache.org/jira/browse/SLING-1352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler resolved SLING-1352.
-------------------------------------

    Resolution: Fixed

The default value is used to get the class for the return value - if it is null, an NPE is thrown

I've fixed this in revision 906858 - if the default value is null, a class cast is performed and no conversion takes place (like the api doc mentions)

> ValueMapDecorator#get(String name, T defaultValue) throws NPE if default value is null
> --------------------------------------------------------------------------------------
>
>                 Key: SLING-1352
>                 URL: https://issues.apache.org/jira/browse/SLING-1352
>             Project: Sling
>          Issue Type: Bug
>          Components: API
>    Affects Versions: API 2.0.8
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: API 2.0.10
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.