From ee0dc0542a76b4ea287cbd1664a407acfa23825c Mon Sep 17 00:00:00 2001 From: Dave Parfitt Date: Tue, 29 Jan 2013 11:34:29 -0500 Subject: [PATCH] don't call process() if args aren't specified --- runtime/Java/src/org/antlr/v4/runtime/misc/TestRig.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/Java/src/org/antlr/v4/runtime/misc/TestRig.java b/runtime/Java/src/org/antlr/v4/runtime/misc/TestRig.java index 31b692d14..6c35a9028 100644 --- a/runtime/Java/src/org/antlr/v4/runtime/misc/TestRig.java +++ b/runtime/Java/src/org/antlr/v4/runtime/misc/TestRig.java @@ -139,7 +139,9 @@ public class TestRig { public static void main(String[] args) throws Exception { TestRig testRig = new TestRig(args); - testRig.process(); + if(args.length >= 2) { + testRig.process(); + } } public void process() throws Exception {