opensubscriber
   Find in this group all groups
 
Unknown more information…

i : issues@commons.apache.org 3 August 2009 • 2:39AM -0400

[jira] Updated: (JEXL-67) Potential NPE in util.introspection.MethodKey
by Henri Biestro (JIRA)

REPLY TO AUTHOR
 
REPLY TO GROUP





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

Henri Biestro updated JEXL-67:
------------------------------

    Attachment: JEXL-67.patch

refactored MethodKey to remove ambiguity wrt null checks

> Potential NPE in util.introspection.MethodKey
> ---------------------------------------------
>
>                 Key: JEXL-67
>                 URL: https://issues.apache.org/jira/browse/JEXL-67
>             Project: Commons JEXL
>          Issue Type: Bug
>            Reporter: Sebb
>            Priority: Minor
>             Fix For: 2.0
>
>         Attachments: JEXL-67.patch
>
>
> There are two potential NPEs in util.introspection.MethodKey (discovered by Eclipse)
> isInvocationConvertible
> isStrictInvocationConvertible
> Both methods check for actual == null, but the check is part of a compound and condition so actual may still be null.
> The comments suggest that actual should not be null, so the code should either drop the null check entirely or check it properly.

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

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.