Signed-off-by:Roland Häder <roland@mxchange.org>
if (null == contact) {
// Abort here
throw new NullPointerException("contact is null"); //NOI18N
+ } if (!(this.getClient() instanceof AddressbookClient)) {
+ // Cannot cast
+ throw new IllegalArgumentException(MessageFormat.format("this.getClient()={0} does not implement AddressbookClient", this.getClient())); //NOI18N
}
// Get and cast client instance
* Default constructor, may only be used from database backend
*/
public UserContact () {
- this.enableFlagOwnContact();
+ this.setOwnContact(Boolean.TRUE);
}
}