Skip to content
Snippets Groups Projects
Commit abc2b890 authored by xsedlac9's avatar xsedlac9
Browse files

if not null added

parent e371f92a
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ public class AccountService {
while (!accountRepository.addAccount(newAccount)) {
newAccount = new Account(UUID.randomUUID().toString(), user);
}
user.addAccountsItem(newAccount.getId());
if (user != null) { user.addAccountsItem(newAccount.getId()); }
return newAccount;
}
public Account getAccount(GetAccountRequest getAccountRequest){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment