Skip to content
Snippets Groups Projects
Commit d411973e authored by Alfred Theorin's avatar Alfred Theorin
Browse files

Fixed NullPointerException in compiler for specifications using undefined usertypes.

parent df2a18ef
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment