forked from jasder/antlr
Don't try to report detailed statistics for empty states (fixes exception in lexer stats reporting)
This commit is contained in:
parent
9ea4747524
commit
3694d51c4e
|
@ -849,7 +849,7 @@ public class TestPerformance extends BaseTest {
|
|||
System.out.format("\tMode\tStates\tConfigs\tMode%n");
|
||||
for (int i = 0; i < modeToDFA.length; i++) {
|
||||
DFA dfa = modeToDFA[i];
|
||||
if (dfa == null) {
|
||||
if (dfa == null || dfa.states.isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue