Don't try to report detailed statistics for empty states (fixes exception in lexer stats reporting)

This commit is contained in:
Sam Harwell 2013-05-12 17:48:33 -05:00
parent 9ea4747524
commit 3694d51c4e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}