[jboss-jira] [JBoss JIRA] Created: (JBRULES-1644) Make drools imply null checks before trying to read a value

Alex McCarrier (JIRA) jira-events at lists.jboss.org
Fri Jun 13 13:53:34 EDT 2008


Make drools imply null checks before trying to read a value
-----------------------------------------------------------

                 Key: JBRULES-1644
                 URL: http://jira.jboss.com/jira/browse/JBRULES-1644
             Project: JBoss Drools
          Issue Type: Feature Request
          Components: Drl Parser/Builder
    Affects Versions: 4.0.6
         Environment: all
            Reporter: Alex McCarrier
         Assigned To: Mark Proctor
            Priority: Minor
             Fix For: FUTURE


Not sure if this is MVEL or drools itself, but it would be nice if it would do null checks on fields for you rather than having the rule author do it.  Example, when doing something like:

when
   Object(value1.value2 == something)
  
  
before attempting to read value2 it makes sure value1 is not null, and if value1 is null than rather than throwing an error like it does currently, just consider the rule as not matching.

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