Groovy: Ternary operator says that "" is null - Stack Overflow
Tell me if I'm wrong, but these three ternary statements above should all do the same thing, namely print out "String is NOT null" if nulString is not null. If nullString is null, print out "String is null". And I think you all agree, if I initialze a variable like nullString = "" it is not null. Just because "" is not null.