pmcneil/One-Ring — Issue #4: null tests in rules fail if not explicit
Author: pmcneil
Created: 2011-12-19 02:35:28+00:00
State: open

in Groovy you can do this:

if (thing) {...

if thing is null or an empty string then that if statement fails, which in general is a good thing. Unfortunately due to the JSON parsing of facts a null is represented by a JSONnull which evaluates to true.

We should convert the JSON results so that the Groovy truth is maintained.