forked from jasder/antlr
Merge pull request #1046 from abego/extraNullCheckInTestRig
Extra 'null' check in TestRig#process
This commit is contained in:
commit
36d8d41def
|
@ -172,9 +172,6 @@ public class TestRig {
|
|||
if ( !startRuleName.equals(LEXER_START_RULE_NAME) ) {
|
||||
String parserName = grammarName+"Parser";
|
||||
parserClass = cl.loadClass(parserName).asSubclass(Parser.class);
|
||||
if ( parserClass==null ) {
|
||||
System.err.println("Can't load "+parserName);
|
||||
}
|
||||
Constructor<? extends Parser> parserCtor = parserClass.getConstructor(TokenStream.class);
|
||||
parser = parserCtor.newInstance((TokenStream)null);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue