<CONTEXT>private CustomClass customClass;</BUG>public DeleteCustomClassUndoable(Main main) {this.main = main;<extra_id_0>public DeleteCustomClassUndoable(Main main) {this.main = main;<BUG>String name = main.getRootTable().getClassSelectBox().getSelected();for (CustomClass foundClass : main.getJsonData().getCustomClasses()) {if (foundClass.getDisplayName().equals(name)) {customClass = foundClass;break;}}</BUG>}</CONTEXT>
public String getUndoText() {return "Rename Class to " + displayName;public static class DeleteCustomClassUndoable implements Undoable {private final Main main;private final CustomClass customClass;customClass = (CustomClass) main.getRootTable().getClassSelectBox().getSelected();