[jboss-jira] [JBoss JIRA] Assigned: (JBRULES-784) NPE when left or right hand fact attribute is null

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Fri May 4 10:04:30 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBRULES-784?page=all ]

Edson Tirelli reassigned JBRULES-784:
-------------------------------------

    Assignee: Edson Tirelli  (was: Mark Proctor)

> NPE when left or right hand fact attribute is null
> --------------------------------------------------
>
>                 Key: JBRULES-784
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-784
>             Project: JBoss Rules
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Conflict Resolution
>    Affects Versions: 3.1-m1, 3.0.6
>         Environment: Windows XP, JBoss 4.0.5, Java 1.5
>            Reporter: David Nelson
>         Assigned To: Edson Tirelli
>
> When a rule is evaluated, if the left or right side of a comparison is null, then the rule throws a NPE during execution which bubbles to the UI.
> Here's the simple scenario:
> Class A has a name attribute.
> Class B has a name attribute set to "Bob".
> when
>          b : B()
>          a: A( $name : name, ($name != b.getName()) )
> then
>          System.out.println("This is not an issue!");

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list