[jboss-jira] [JBoss JIRA] Created: (JBRULES-1722) Disabled rules still throws errors.

Le Huynh (JIRA) jira-events at lists.jboss.org
Thu Aug 7 20:58:51 EDT 2008


Disabled rules still throws errors.
-----------------------------------

                 Key: JBRULES-1722
                 URL: https://jira.jboss.org/jira/browse/JBRULES-1722
             Project: JBoss Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 4.0.7
         Environment: Windows XP.
            Reporter: Le Huynh
            Assignee: Mark Proctor


When a rule throws an error (E.g. NullPointerException), disabling this rule does not ignore it and the error is still being thrown.

So if the following rule:

rule "rule1"
	no-loop true
	enabled false
	when
		ObjectOne( object.subObject.name == "ObjectOne")
	then
		System.out.println( "blah1" );
	end;


The fact passed in:

public class ObjectOne
{
   	public String getName()
	{
		return "ObjectOne";
	}

	public ObjectOne getSubObject()
	{
		return null;   // Returning null intentionally.
	}
}



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

        



More information about the jboss-jira mailing list