]> git.mxchange.org Git - jaddressbook-lib.git/commitdiff
Fixed getter calls, the new ones are more descriptive.
authorRoland Haeder <roland@mxchange.org>
Mon, 18 Apr 2016 18:59:12 +0000 (20:59 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 18 Apr 2016 19:00:56 +0000 (21:00 +0200)
src/org/mxchange/addressbook/validator/user/UserIdValidator.java

index 93923a9f5a693b06f7e2a5e3d75764eea576d732..d273aca705f776bf80c51817888bd22ffde2eabf 100644 (file)
@@ -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