5.1<br><br>rule &quot;lucky&quot;<br>when<br>   Putin: X()<br>then<br>   modify( Putin ){...}<br>end<br><br>crashes with:<br>Exception in thread &quot;main&quot; [Error: was expecting type: java.util.Collection; but found type: null]<br>
[Near : {... ( Putin  ....}]<br>                     ^<br>[Line: 1, Column: 9]<br>    at org.mvel2.util.CompilerTools.expectType(CompilerTools.java:295)<br>    at org.mvel2.ast.Fold.&lt;init&gt;(Fold.java:70)<br>    at org.mvel2.compiler.AbstractParser.nextToken(AbstractParser.java:961)<br>
    at org.mvel2.compiler.ExpressionCompiler._compile(ExpressionCompiler.java:121)<br>    at org.mvel2.compiler.ExpressionCompiler.compile(ExpressionCompiler.java:68)<br>    at org.drools.rule.builder.dialect.mvel.MVELExprAnalyzer.analyzeExpression(MVELExprAnalyzer.java:86)<br>
    at org.drools.rule.builder.dialect.mvel.MVELDialect.analyzeBlock(MVELDialect.java:494)<br>    at org.drools.rule.builder.dialect.java.JavaConsequenceBuilder.rewriteModify(JavaConsequenceBuilder.java:224)<br>...<br><br>
This is, of course, not due to using exactly *that* name; it occurs if<br>(1) the bound name matches /^.+in$/ and<br>(2) there is, in &quot;modify&quot;, white space between &quot;in&quot; and &quot;)&quot; <br><br>-W<br>
<br>