Skip to content

Commit

Permalink
close #215 -- fixed NPE in backtranslation (if there is no C function…
Browse files Browse the repository at this point in the history
…, use the boogie name instead of crashing)
  • Loading branch information
danieldietsch committed Aug 4, 2017
1 parent ca25d16 commit 81ddac3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1539,7 +1539,9 @@ private static String getRealName(final IdentifierExpression originalExpression,
final ILocation loc = originalExpression.getLoc();
if (loc instanceof CLocation) {
final CLocation cloc = (CLocation) loc;
return cloc.getNode().getRawSignature();
if (cloc.getNode() != null) {
return cloc.getNode().getRawSignature();
}
}
return name;
}
Expand Down

0 comments on commit 81ddac3

Please sign in to comment.