Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
EMAM2Cpp
Commits
641211ac
Commit
641211ac
authored
Jul 25, 2018
by
Christoph Richter
Browse files
Fixed ptential npe
parent
23acf50e
Pipeline
#64918
failed with stage
in 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/monticore/lang/monticar/generator/optimization/MathInformationRegister.java
View file @
641211ac
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment