When the configList is null, the AND logic should not proceed further, but I am getting this error - "array index out of bounds".
Below is the rule :
rule "testRule"
when
config : Config( configList != null && !configList.empty && configList[0].attribute != null )
then
// logic
end