@@ -25,10 +25,13 @@ fail("array access not allowed"); } try (args.length == 0 ? v : v) { fail("general expressions not allowed"); } + try ((TwrForVariable2)null) { + fail("null as variable is not allowed"); + } } static void fail(String reason) { throw new RuntimeException(reason); }