diff options
Diffstat (limited to 'test/files/cli/test1')
-rw-r--r-- | test/files/cli/test1/Main.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/cli/test1/Main.scala b/test/files/cli/test1/Main.scala index 9958d6a54c..885651e0ee 100644 --- a/test/files/cli/test1/Main.scala +++ b/test/files/cli/test1/Main.scala @@ -1,7 +1,7 @@ package test1 object Main { def main(args: Array[String]) = { - val arg = if (args.length > 0) args(0) else "?" + val arg = if (args != null && args.length > 0) args(0) else "?" Console.println("1: test " + arg + " passed") } } |