if (null == shareableAddressbook) {
// Should not happen
throw new NullPointerException("shareableAddressbook is null"); //NOI18N
- } else if (Objects.equals(this, shareableAddressbook)) {
+ } else if (shareableAddressbook.equals(this)) {
// Same object
return 0;
}