Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
3.0.3
-
None
-
Win10/MacOS
Zulu OpenJDK 11
Description
Hi, I got NPE instead of empty string when I wrote the following snippet:
static String a() { null } static String b() { '' } def x = a() ? [b(), a()].join(',') : b() // NPE //def x = a() ? [b(), a()] : b() // OK //def x = a() ? ([b(), a()]).join(',') : b() // OK x == ''