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