[jboss-jira] [JBoss JIRA] Created: (JBRULES-2669) NullPointerException when empty byte array resource is added to KnowledgeBuilder

Samuli Saarinen (JIRA) jira-events at lists.jboss.org
Tue Aug 17 06:46:11 EDT 2010


NullPointerException when empty byte array resource is added to KnowledgeBuilder
--------------------------------------------------------------------------------

                 Key: JBRULES-2669
                 URL: https://jira.jboss.org/browse/JBRULES-2669
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 5.1.0.FINAL
            Reporter: Samuli Saarinen
            Assignee: Mark Proctor


Following code produces the NPE

{code:java}
@Test
public void testEmptyByteResource() throws Exception {
	KnowledgeBuilder builder = KnowledgeBuilderFactory.newKnowledgeBuilder();
	builder.add(ResourceFactory.newByteArrayResource(new byte[0]), ResourceType.DRL);
}
{code}

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

        


More information about the jboss-jira mailing list