Commit 6e423c4a authored by Adam Knapp's avatar Adam Knapp
Browse files

Fixing NPE


Signed-off-by: Adam Knapp's avatarAdam Knapp <adam.knapp@ericsson.com>
parent 90e9f8ec
......@@ -114,7 +114,8 @@ public final class ClassTypeReferenceList extends ASTNode implements ILocateable
final Component_Type extRunsOnType = extClass.getRunsOnType(timestamp);
final Component_Type myRunsOnType = myClass.getRunsOnType(timestamp);
if (myRunsOnType != null && !myRunsOnType.isCompatible(timestamp, extRunsOnType, null, null, null)) {
if (myRunsOnType != null && extRunsOnType != null &&
!myRunsOnType.isCompatible(timestamp, extRunsOnType, null, null, null)) {
myClass.getRunsOnRef().getLocation().reportSemanticError(
MessageFormat.format(INCOMPATIBLERUNSON, myClass.getFullName(), extClass.getFullName()));
}
......
Markdown is supported
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