Project

General

Profile

Actions

Bug #10649

closed

(let) java.lang.NullPointerException: null

Added by Alexander Protsenko almost 4 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
nML Translator
Target version:
Start date:
12/28/2020
Due date:
% Done:

0%

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

Description

********************************************************************************
ATTENTION! An unexpected error has occurred:
java.lang.NullPointerException: null

The program will be terminated. Please contact us at: 
microtesk-support@ispras.ru
We are sorry for the inconvenience.

Exception stack:

java.lang.NullPointerException
    at ru.ispras.microtesk.translator.nml.antlrex.LocationFactory.location(LocationFactory.java:67)
    at ru.ispras.microtesk.translator.nml.grammar.NmlTreeWalker.locationAtom(NmlTreeWalker.java:5984)
    at ru.ispras.microtesk.translator.nml.grammar.NmlTreeWalker.locationVal(NmlTreeWalker.java:5846)
    at ru.ispras.microtesk.translator.nml.grammar.NmlTreeWalker.locationExpr(NmlTreeWalker.java:5725)
    at ru.ispras.microtesk.translator.nml.grammar.NmlTreeWalker.atom(NmlTreeWalker.java:5213)
    at ru.ispras.microtesk.translator.nml.grammar.NmlTreeWalker.numExpr(NmlTreeWalker.java:4471)
    at ru.ispras.microtesk.translator.nml.grammar.NmlTreeWalker.expr(NmlTreeWalker.java:4123)
    at ru.ispras.microtesk.translator.nml.grammar.NmlTreeWalker.constExpr(NmlTreeWalker.java:3887)
    at ru.ispras.microtesk.translator.nml.grammar.NmlTreeWalker.letExpr(NmlTreeWalker.java:549)
    at ru.ispras.microtesk.translator.nml.grammar.NmlTreeWalker.letDef(NmlTreeWalker.java:499)
    at ru.ispras.microtesk.translator.nml.grammar.NmlTreeWalker.procSpec(NmlTreeWalker.java:400)
    at ru.ispras.microtesk.translator.nml.grammar.NmlTreeWalker.startRule(NmlTreeWalker.java:293)
    at ru.ispras.microtesk.translator.nml.NmlTranslator.startParserAndWalker(NmlTranslator.java:181)
    at ru.ispras.microtesk.translator.nml.NmlTranslator.start(NmlTranslator.java:126)
    at ru.ispras.microtesk.translator.Translator.translate(Translator.java:201)
    at ru.ispras.microtesk.MicroTESK.translate(MicroTESK.java:150)
    at ru.ispras.microtesk.MicroTESK.runTask(MicroTESK.java:142)
    at ru.ispras.microtesk.MicroTESK.main(MicroTESK.java:80)

********************************************************************************

Нужна адекватная диагностика.

Код, вызывающий это:

let NULL_POINTER = NULL_POINTER2
let NULL_POINTER2 = 0x1

Actions #1

Updated by Alexander Kamkin almost 4 years ago

  • Status changed from New to Resolved

Forward definitions are not allowed.

FIXED: if a constant is not found, the error is raised.

Actions #2

Updated by Alexander Protsenko almost 4 years ago

  • Status changed from Resolved to Open

Так лучше:

 29:19 ERROR (SEMANTIC): "Constant NULL_POINTER2 is not found. Forward definitions are not allowed." 
 29:19 ERROR (SEMANTIC): "Failed to recognize the grammar structure (ignored): 'NULL_POINTER2'." 
 29:0 ERROR (SEMANTIC): "Failed to recognize the grammar structure (ignored): 'NULL_POINTER2'." 
 29:0 ERROR (SEMANTIC): "Failed to recognize the grammar structure (ignored): 'NULL_POINTER2'." 

Но было бы здорово, еще указать файл, где это возникает.

Actions #3

Updated by Alexander Protsenko almost 4 years ago

  • Status changed from Open to Resolved

Bug #10657

Actions #4

Updated by Alexander Protsenko over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF