Skip to content

Commit

Permalink
Prevent adding null names to the remapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskarth committed Sep 6, 2023
1 parent 99b9298 commit d9b81ec
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1614,7 +1614,12 @@ private void iterateClashingExprent(Statement stat, StructMethod mt, Map<Stateme
}

// Record the changed name if we didn't scope switch
nameMap.put(new VarInMethod(var.getVarVersionPair(), mt), scopedSwitch ? originalName : name);
String value = scopedSwitch ? originalName : name;
if (value == null) {
ValidationHelper.validateTrue(false, "Variable name is null");
} else {
nameMap.put(new VarInMethod(var.getVarVersionPair(), mt), value);
}
}
}
}
Expand Down

0 comments on commit d9b81ec

Please sign in to comment.