[rules-users] Problem when using multiple rule files (Drools 5)

Olaf Raether o.raether at epro.de
Tue Jul 28 02:35:06 EDT 2009


The rules and the facts are the same. 

So i add the source to the project and (try to) debug into the code. 
The NPE occurs in the "getIndex" method (see source fragment below)
and the reader member is NULL. And the only point where "reader" is set is
in
the "setReadAccessor" method, but the method is not called in this context.
>From my point of view it could be bug and  i will try to create 
a testcase - hope it is reproducible then.


part of ClassFieldReader.java
...
public void setReadAccessor(InternalReadAccessor reader) {
        this.reader = reader;
 }

public int getIndex() {
       return this.reader.getIndex();
}
...
-- 
View this message in context: http://www.nabble.com/Problem-when-using-multiple-rule-files-%28Drools-5%29-tp24623347p24693274.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list