// Check on user
if (null == user) {
// Throw NPE
- throw new NullPointerException("user is null");
+ throw new NullPointerException("user is null"); //NOI18N
} else if (user.getUserId() == null) {
// Throw NPE again
- throw new NullPointerException("user.userId is null");
+ throw new NullPointerException("user.userId is null"); //NOI18N
} else if (user.getUserId() < 1) {
// Invalid id
- throw new IllegalArgumentException(MessageFormat.format("user.userId={0} is invalid", user.getUserId()));
+ throw new IllegalArgumentException(MessageFormat.format("user.userId={0} is invalid", user.getUserId())); //NOI18N
} else if (user.getUserProfileMode() == null) {
// And another NPE ...
- throw new NullPointerException("user.userProfileMode is null");
+ throw new NullPointerException("user.userProfileMode is null"); //NOI18N
}
// Default profile mode is not visible