Commit 641211ac authored by Christoph Richter's avatar Christoph Richter
Browse files

Fixed ptential npe

parent 23acf50e
Pipeline #64918 failed with stage
in 17 seconds
......@@ -214,8 +214,11 @@ public class MathInformationRegister {
*/
public MathValueSymbol getFullTypeInformation(MathValueSymbol symbol) {
MathValueSymbol result = getMathValueSymbol(symbol.getName());
if (result == null)
if (result == null) {
result = symbol;
// ask symbol table
result = (MathValueSymbol) symbol.getEnclosingScope().resolve(symbol.getName(), symbol.getKind()).orElse(null);
}
return result;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment