NPE when there is a null value in a list used by a FROM element in a BRMS rule

Solution Verified - Updated -

Issue

The following rule throws an NPE if the list contains a null item:

global java.util.List list

rule R
when
    $other : Integer( ) from list
then
end

Environment

  • Red Hat JBoss Business Rules Managment System (BRMS)
    • 5.3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content