[jboss-jira] [JBoss JIRA] (JBRULES-3544) nullSafeEqualityComparison in PackageBuilder is not null safe
Mario Fusco (JIRA)
jira-events at lists.jboss.org
Fri Jul 6 09:33:13 EDT 2012
[ https://issues.jboss.org/browse/JBRULES-3544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco reassigned JBRULES-3544:
------------------------------------
Assignee: Mario Fusco (was: Mark Proctor)
> nullSafeEqualityComparison in PackageBuilder is not null safe
> -------------------------------------------------------------
>
> Key: JBRULES-3544
> URL: https://issues.jboss.org/browse/JBRULES-3544
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-compiler
> Affects Versions: 5.4.0.Final
> Reporter: Davide Grohmann
> Assignee: Mario Fusco
>
> The method nullSafeEqualityComparison uses the compareTo method which is not null safe. The issue can be reproduce by calling nullSafeEqualityComparison with the second parameter null.
> There are two possible fixes:
> 1) use equals instead of compareTo in nullSafeEqualityComparison
> 2) or add a check for the non nullity of the second argument.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list