[jboss-jira] [JBoss JIRA] Updated: (JBRULES-523) JoinNode and NotNode with empty binder throw exception with getConstraints()

Ahti Kitsik (JIRA) jira-events at jboss.com
Tue Oct 17 20:29:41 EDT 2006


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

Ahti Kitsik updated JBRULES-523:
--------------------------------

        Fix Version/s: 3.0.5
    Affects Version/s: 3.0.4
                           (was: 3.1-m3)

> JoinNode and NotNode with empty binder throw exception with getConstraints()
> ----------------------------------------------------------------------------
>
>                 Key: JBRULES-523
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-523
>             Project: JBoss Rules
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Reteoo
>    Affects Versions: 3.0.4
>            Reporter: Ahti Kitsik
>         Assigned To: Ahti Kitsik
>             Fix For: 3.0.5
>
>   Original Estimate: 15 minutes
>  Remaining Estimate: 15 minutes
>
> Currently it is not possible to check if binder is null or not and getConstraints throws NPE if it is.
> Simple sanity check in getContraints would fix it (will be fixed in 3.0.x branch).
> Sample for reproducing
>         final JoinNode joinNode = new JoinNode( 1,
>                                                 this.tupleSource,
>                                                 this.objectSource, null);        
> joinNode.getConstraints(); // Throws NPE
>         final NotNode notNode = new NotNode( 1,
>                                                 this.tupleSource,
>                                                 this.objectSource, null);
> notNode.getConstraints(); // throws NPE

-- 
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