Revert "fix null ptr"

This reverts commit 95f5d858cb.
This commit is contained in:
Terence Parr 2012-08-03 18:27:57 -07:00
parent b8c2f5b75b
commit 8a0af228d8
1 changed files with 2 additions and 4 deletions

View File

@ -688,10 +688,8 @@ public class ParserATNSimulator<Symbol extends Token> extends ATNSimulator {
// pairs if preds found for conflicting alts
IntervalSet altsToCollectPredsFrom = getConflictingAltsOrUniqueAlt(D.configs);
SemanticContext[] altToPred = getPredsForAmbigAlts(altsToCollectPredsFrom, D.configs, nalts);
if ( altToPred!=null ) {
D.predicates = getPredicatePredictions(altsToCollectPredsFrom, altToPred);
D.prediction = ATN.INVALID_ALT_NUMBER; // make sure we use preds
}
D.predicates = getPredicatePredictions(altsToCollectPredsFrom, altToPred);
D.prediction = ATN.INVALID_ALT_NUMBER; // make sure we use preds
if ( D.predicates!=null ) {
int stopIndex = input.index();