[
https://issues.jboss.org/browse/JBRULES-3544?page=com.atlassian.jira.plug...
]
Mario Fusco resolved JBRULES-3544.
----------------------------------
Fix Version/s: 5.4.1.Final
5.5.0.Beta1
Resolution: Done
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
Fix For: 5.4.1.Final, 5.5.0.Beta1
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