<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>In attachment there are a DRL file and java test case which causes the NPE mentionned below.</div><div><br></div><div>Thanks,</div><div>Regards</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(0, 0, 128); "><span style="color: #ff0000">Exception in thread "main" </span><span style="text-decoration: underline">java.lang.NullPointerException</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.rule.builder.PatternBuilder.buildRestriction(<span style="text-decoration: underline ; color: #000080">PatternBuilder.java:948</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.rule.builder.PatternBuilder.buildRestriction(<span style="text-decoration: underline ; color: #000080">PatternBuilder.java:727</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.rule.builder.PatternBuilder.createRestriction(<span style="text-decoration: underline ; color: #000080">PatternBuilder.java:504</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.rule.builder.PatternBuilder.build(<span style="text-decoration: underline ; color: #000080">PatternBuilder.java:351</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.rule.builder.PatternBuilder.buildConstraint(<span style="text-decoration: underline ; color: #000080">PatternBuilder.java:239</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.rule.builder.PatternBuilder.build(<span style="text-decoration: underline ; color: #000080">PatternBuilder.java:196</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.rule.builder.PatternBuilder.build(<span style="text-decoration: underline ; color: #000080">PatternBuilder.java:104</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.rule.builder.GroupElementBuilder.build(<span style="text-decoration: underline ; color: #000080">GroupElementBuilder.java:69</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.rule.builder.RuleBuilder.build(<span style="text-decoration: underline ; color: #000080">RuleBuilder.java:68</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.compiler.PackageBuilder.addRule(<span style="text-decoration: underline ; color: #000080">PackageBuilder.java:1159</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.compiler.PackageBuilder.addPackage(<span style="text-decoration: underline ; color: #000080">PackageBuilder.java:649</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.compiler.PackageBuilder.addPackageFromDrl(<span style="text-decoration: underline ; color: #000080">PackageBuilder.java:290</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.compiler.PackageBuilder.addKnowledgeResource(<span style="text-decoration: underline ; color: #000080">PackageBuilder.java:488</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.builder.impl.KnowledgeBuilderImpl.add(<span style="text-decoration: underline ; color: #000080">KnowledgeBuilderImpl.java:25</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at TestQuote.executeRule(<span style="text-decoration: underline ; color: #000080">TestQuote.java:37</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at TestQuote.main(<span style="text-decoration: underline ; color: #000080">TestQuote.java:19</span>)</div></div><div><br></div><div></div></body></html>