Project

General

Profile

Bug #8694

Parsing an empty *.mmu file causes NullPointerException

Added by Alexander Kamkin about 1 year ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Category:
mmuSL
Target version:
Start date:
01/30/2018
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Platform:
Published in build:

Description

java.lang.NullPointerException
    at org.antlr.runtime.tree.BaseTreeAdaptor.isNil(BaseTreeAdaptor.java:73)
    at org.antlr.runtime.tree.CommonTreeNodeStream.nextElement(CommonTreeNodeStream.java:104)
    at org.antlr.runtime.misc.LookaheadStream.fill(LookaheadStream.java:113)
    at org.antlr.runtime.misc.LookaheadStream.syncAhead(LookaheadStream.java:107)
    at org.antlr.runtime.misc.LookaheadStream.LT(LookaheadStream.java:129)
    at org.antlr.runtime.tree.CommonTreeNodeStream.LA(CommonTreeNodeStream.java:151)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.startRule(MmuTreeWalker.java:240)
    at ru.ispras.microtesk.mmu.translator.MmuTranslator.start(MmuTranslator.java:124)
    at ru.ispras.microtesk.translator.Translator.translate(Translator.java:201)
    at ru.ispras.microtesk.MicroTESK.translate(MicroTESK.java:162)
    at ru.ispras.microtesk.MicroTESK.runTask(MicroTESK.java:135)
    at ru.ispras.microtesk.MicroTESK.main(MicroTESK.java:73)
empty_test.mmu (0 Bytes) empty_test.mmu Alexander Kamkin, 01/30/2018 04:27 PM

History

#1 Updated by Alexander Kamkin about 1 year ago

Test case

Also available in: Atom PDF