Project

General

Profile

Bug #6326

If an nml file contains no operations, translation fails with NPE

Added by Alexander Kamkin about 4 years ago. Updated almost 4 years ago.

Status:
New
Priority:
High
Assignee:
Andrei Tatarnikov
Category:
-
Target version:
Start date:
10/06/2015
Due date:
% Done:

0%

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

Description

Total time: 0 seconds
Translating: xxx.nml
Model name: xxx
Included: xxx.nml
Error: FAILED TO SYNTHESIZE INFORMATION ON DESCRIBED OPERATIONS. TRANSLATION WAS INTERRUPTED.
Translating: xxx.mmu
Model name: xxx

Included: xxx.mmu

xxx.nml 0:0 ERROR (EMITTER): "The operation list is empty. No information to be analyzed." 
java.lang.NullPointerException
    at ru.ispras.microtesk.mmu.translator.MmuTreeWalkerBase.newAttributeRef(MmuTreeWalkerBase.java:940)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.attributeRef(MmuTreeWalker.java:2082)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.variableAtom(MmuTreeWalker.java:3705)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.variableBitfield(MmuTreeWalker.java:3570)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.variableConcat(MmuTreeWalker.java:3454)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.variable(MmuTreeWalker.java:3365)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.atom(MmuTreeWalker.java:3219)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.expr(MmuTreeWalker.java:2175)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.assignmentStmt(MmuTreeWalker.java:1658)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.statement(MmuTreeWalker.java:1499)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.sequence(MmuTreeWalker.java:1391)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.mmu(MmuTreeWalker.java:1317)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.declaration(MmuTreeWalker.java:342)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.startRule(MmuTreeWalker.java:205)
    at ru.ispras.microtesk.mmu.translator.MmuTranslator.start(MmuTranslator.java:138)
    at ru.ispras.microtesk.translator.Translator.start(Translator.java:97)
    at ru.ispras.microtesk.MicroTESK.translate(MicroTESK.java:141)
    at ru.ispras.microtesk.MicroTESK.main(MicroTESK.java:74)

BUILD FAILED

History

#1

Updated by Andrei Tatarnikov almost 4 years ago

Cannot reproduce. Need an example.

#2

Updated by Andrei Tatarnikov almost 4 years ago

Same stack as in Bug #6329

#3

Updated by Andrei Tatarnikov almost 4 years ago

Need a an example. "If an nml file contains no operations, translation fails with NPE" is not enough. I deleted all operations from minimips.nml, but the translator does not crash. If this does not happen any longer, the issue must be closed.

Also available in: Atom PDF