Fix for enums test

This commit is contained in:
Andy Clement
2014-01-22 14:29:35 -08:00
parent fb3ac73b4d
commit b253399eac

View File

@@ -103,10 +103,10 @@ public class ClassRenamer {
private String renameRetargetIfNecessary(String string) {
String value = retargets.get(string);
if (value!=null) {
if (value != null) {
return value;
}
if (string.indexOf(oldname) != -1) {
if (string != null && string.indexOf(oldname) != -1) {
return string.replace(oldname, newname);
}
return string;