Hi there, is this behaviour intentional? Seems to me it should either throw in all these cases, or in none of them, but as always, I might be missing something of importance:
=== Groovy Shell (4.0.5, JVM: 1.8.0_181) Type ':help' or ':h' for help. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- groovy:000> [][0] ===> null groovy:000> [][666] ===> null groovy:000> [][1e9] ===> null groovy:000> [][-1] ERROR java.lang.ArrayIndexOutOfBoundsException: Negative array index [-1] too large for array size 0 groovy:000> [][-3] ERROR java.lang.ArrayIndexOutOfBoundsException: Negative array index [-3] too large for array size 0 groovy:000> === Thanks and all the best, OC