Commit 3fbc5251 authored by jim's avatar jim

child

parent 4a022416
......@@ -726,7 +726,7 @@ public class AccountServiceImpl implements AccountService {
else
user.setName(existing.getName() + i);
Account child = accountRepository.findByName(user.getName()).orElseThrow(() -> new ClientRequestException(AccountErrorCode.NAMENOTEXIST));
Account child = accountRepository.findByName(user.getName()).orElse(null);
if (child != null) {
time++;
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment