[infinispan-issues] [JBoss JIRA] (ISPN-2839) Method boolean Cache.replace(K key, V oldValue, V value) (and variants) should guard against null oldValue parameter

Adrian Nistor (JIRA) jira-events at lists.jboss.org
Fri Feb 22 05:02:57 EST 2013


     [ https://issues.jboss.org/browse/ISPN-2839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Nistor updated ISPN-2839:
--------------------------------

        Status: Resolved  (was: Pull Request Sent)
    Resolution: Done


Integrated in both master and 5.2.x.
                
> Method boolean Cache.replace(K key, V oldValue, V value) (and variants) should guard against null oldValue parameter
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: ISPN-2839
>                 URL: https://issues.jboss.org/browse/ISPN-2839
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Core API
>    Affects Versions: 5.2.1.Final
>            Reporter: Adrian Nistor
>            Assignee: Adrian Nistor
>            Priority: Minor
>              Labels: 5.2.x
>             Fix For: 5.2.2.Final, 5.3.0.Final
>
>
> The null check is not done explicitly but it will accidentally fail with NPE when trying to cast the result of the execution of ReplaceCommand to a Boolean. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list