Correct nil check in ParserATNSimulator

This commit is contained in:
Peter Boyer 2016-05-20 10:33:39 -04:00
parent 1ccaad7ae1
commit 3406acabe5
1 changed files with 1 additions and 1 deletions

View File

@ -1059,7 +1059,7 @@ func (this *ParserATNSimulator) closure_(config ATNConfig, configs ATNConfigSet,
_, ok := t.(*ActionTransition)
var continueCollecting = collectPredicates && !ok
var c = this.getEpsilonTarget(config, t, continueCollecting, depth == 0, fullCtx, treatEofAsEpsilon)
if c != nil {
if ci, ok := c.(*BaseATNConfig); ok && ci != nil {
if PortDebug {
fmt.Println("DEBUG 1 ok")
}