]> git.mxchange.org Git - jjobs-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 18:59:12 +0000 (20:59 +0200)
src/org/mxchange/jjobs/validator/user/UserIdValidator.java

index 77b218e50a4c65381a019b6e22dbcedc130da1a1..416d625c9114aca2766db2462b627a5358a21809 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