diff --git a/src/main/java/cactusServer/models/Accounts.java b/src/main/java/cactusServer/models/Accounts.java index e06fbce..5a42252 100644 --- a/src/main/java/cactusServer/models/Accounts.java +++ b/src/main/java/cactusServer/models/Accounts.java @@ -102,7 +102,10 @@ } public Account deleteAccount(String uniqueID) { - Account edit = Accounts.getInstance().getAccountToken(uniqueID); + Account edit = Accounts.getInstance().getAccountByuniqueID(uniqueID); + if(edit == null) { + return edit; + } userIDSet.remove(edit.getId()); uniqueIDSet.remove(edit.getUniqueID()); accounts.remove(edit);