[rules-users] PatternBuilder createRestriction bug on Drools 5.1.1

Manuel Ortiz manuel.ortizramos at gmail.com
Wed Dec 21 18:12:29 EST 2011


Dear Sirs:

I'm working on an application which writes a set of rules using information
which is stored in BDD tables. This information can be 'wrong' concerning
rule compilation, and I expect that Drools reports the corresponding
compilation errors.

I've found that PatternBuilder.createRestriction() fails to process
composite restrictions when one of the single restrictions cannot be
implemented. The problem is that although one of the sigle restrictions is
returned null, the composite restriction array is succesfully returned, one
of its elements being null, wich causes a NullPointerException when the
composite restriction is processed in
PatternBuilder.build(AbstractCompositeConstraint version) to obtain a
MultiRestrictionFieldConstraint object.

I would like to know if this bug has yet been reported and fixed in some
Drools version beyond 5.1.1

Thank you very much for your time.

Kind regards,

Manuel Ortiz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20111222/3d73dc0e/attachment.html 


More information about the rules-users mailing list