small fix
This commit is contained in:
parent
d2d889f011
commit
18a2818f4f
|
@ -1026,8 +1026,8 @@ public class UserServiceImpl implements UserService {
|
|||
if (contactInfoEntity != null){
|
||||
userId = contactInfoEntity.getUserId();
|
||||
}
|
||||
if (userId != this.userScope.getUserId()) throw new MyApplicationException("Cannot confirm invitation for different User");
|
||||
if (userId != null) {
|
||||
if (!userId.equals(this.userScope.getUserId())) throw new MyApplicationException("Cannot confirm invitation for different User");
|
||||
UserCredentialEntity userCredential = this.queryFactory.query(UserCredentialQuery.class).disableTracking().userIds(userId).first();
|
||||
if (userCredential == null) throw new MyApplicationException();
|
||||
|
||||
|
|
Loading…
Reference in New Issue