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

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


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.1-m3
            Reporter: Ahti Kitsik
         Assigned To: Mark Proctor


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