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

Ahti Kitsik (JIRA) jira-events at jboss.com
Thu Nov 9 15:50:41 EST 2006


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

Ahti Kitsik closed JBRULES-523.
-------------------------------

    Resolution: Done
      Assignee: Mark Proctor  (was: Ahti Kitsik)

fixed in revision 6875, drools-core package.
modified files:
LeftInputAdapterNode, BetaNode, JoinNodeTest, LeftInputAdapterNodeTest, NotNodeTest,

> 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: Mark Proctor
>            Priority: Minor
>             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