Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sven Gestegård Robertz
LabComm
Commits
d411973e
Commit
d411973e
authored
Jul 24, 2014
by
Alfred Theorin
Browse files
Fixed NullPointerException in compiler for specifications using undefined usertypes.
parent
df2a18ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/TypeCheck.jrag
View file @
d411973e
...
...
@@ -9,7 +9,13 @@ aspect TypeCheck {
syn boolean Type.isNull();
eq Type.isNull() = false;
eq VoidType.isNull() = true;
eq UserType.isNull() = decl().isNull();
eq UserType.isNull() {
if (decl() != null) {
return decl().isNull();
} else {
return false;
}
}
syn boolean TypeDecl.isNull();
eq TypeDecl.isNull() = getType().isNull();
...
...
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