[jboss-jira] [JBoss JIRA] Created: (JBRULES-1508) NPE in MVELDataProvider

Jan Boboli (JIRA) jira-events at lists.jboss.org
Mon Mar 17 12:23:52 EDT 2008


NPE in MVELDataProvider
-----------------------

                 Key: JBRULES-1508
                 URL: http://jira.jboss.com/jira/browse/JBRULES-1508
             Project: JBoss Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 4.0.5, 5.0.0-M1
            Reporter: Jan Boboli
         Assigned To: Mark Proctor
            Priority: Critical
             Fix For: 4.0.5, 5.0.0-M1
         Attachments: MVELDataProvider.patch

After fix for 1446 bug, NPE can occur if the result in getResults() method is null.
NPE occurs on line :
63: else if ( result.getClass().isArray() ) {

It occurs because you try to call getClass() on null object.  

i created a patch for 4.0.x that solves the problem

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