[rules-users] encounter NullPointerException when adding ruleflow

Wolfgang Laun wolfgang.laun at gmail.com
Tue Sep 6 05:44:29 EDT 2011


2011/9/6 Swindells, Thomas <TSwindells at nds.com>

>  Are you sure that basicFlow.rf is in your classpath correctly?
>


The NPE does happen when the file is missing.

One can't test the returned org.drools.io.Resource object - an object is
returned from
   ResourceFactory.newClassPathResource("no such filef")

So I think that either the ResourceFactory or the Builder should produce a
decent error message. NPE is phooey.

-W
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110906/f86f2423/attachment.html 


More information about the rules-users mailing list