From: Roland Haeder Date: Wed, 24 Feb 2016 16:17:20 +0000 (+0100) Subject: better comment (from copy/paste) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1e84525af98dcf04a1d3f22ffbf4378e8ca64b64;p=addressbook-ejb.git better comment (from copy/paste) --- diff --git a/src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java b/src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java index 670e369..895f2f1 100644 --- a/src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java +++ b/src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java @@ -66,7 +66,7 @@ public class AddressbookSessionBean extends BaseDatabaseBean implements Addressb // Throw again NPE throw new NullPointerException("addressbook.addressbookUser.userId is null"); } else if (addressbook.getAddressbookUser().getUserId() < 1) { - // Throw again NPE + // Invalid id number again throw new IllegalArgumentException(MessageFormat.format("addressbook.addressbookUser.userId={0} is invalid", addressbook.getAddressbookUser().getUserId())); }