From: Roland Haeder Date: Mon, 18 Apr 2016 18:59:12 +0000 (+0200) Subject: Fixed getter calls, the new ones are more descriptive. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a5da4801e8b1a61328551a8a32a073f84c978945;p=jaddressbook-share-lib.git Fixed getter calls, the new ones are more descriptive. --- diff --git a/src/org/mxchange/addressbook/validator/user/UserIdValidator.java b/src/org/mxchange/addressbook/validator/user/UserIdValidator.java index 93923a9..d273aca 100644 --- a/src/org/mxchange/addressbook/validator/user/UserIdValidator.java +++ b/src/org/mxchange/addressbook/validator/user/UserIdValidator.java @@ -98,19 +98,19 @@ public class UserIdValidator extends BaseLongValidator implements Validator { if (null == event) { // Throw NPE throw new NullPointerException("event is null"); //NOI18N - } else if (event.getUser() == null) { + } else if (event.getRegisteredUser() == null) { // Throw NPE again throw new NullPointerException("event.user is null"); //NOI18N - } else if (event.getUser().getUserId() == null) { + } else if (event.getRegisteredUser().getUserId() == null) { // userId is null throw new NullPointerException("event.user.userId is null"); //NOI18N - } else if (event.getUser().getUserId() < 1) { + } else if (event.getRegisteredUser().getUserId() < 1) { // Not avalid id - throw new IllegalArgumentException(MessageFormat.format("userId of user={0} is not valid: {1}", event.getUser(), event.getUser().getUserId())); //NOI18N + throw new IllegalArgumentException(MessageFormat.format("userId of user={0} is not valid: {1}", event.getRegisteredUser(), event.getRegisteredUser().getUserId())); //NOI18N } // Get user instance - User registeredUser = event.getUser(); + User registeredUser = event.getRegisteredUser(); // Debug message this.loggerBeanLocal.logDebug(MessageFormat.format("UserIdValidator:afterRegistrationEvent: registeredUser={0}", registeredUser)); //NOI18N