// Is both set?
if (null == user) {
// Throw NPE
- throw new NullPointerException("user is null");
+ throw new NullPointerException("user is null"); //NOI18N
} else if (null == userPassword) {
// Throw NPE again
- throw new NullPointerException("userPassword is null");
+ throw new NullPointerException("userPassword is null"); //NOI18N
} else if (userPassword.isEmpty()) {
// Empty password
- throw new IllegalArgumentException("user password is empty.");
+ throw new IllegalArgumentException("user password is empty."); //NOI18N
}
// Set both