} else if (countryCode.isEmpty()) {
// Throw IAE
throw new IllegalArgumentException("countryCode is empty"); //NOI18N
+ } else if (null == countryExternalDialPrefix) {
+ // Throw NPE
+ throw new NullPointerException("countryExternalDialPrefix is null"); //NOI18N
+ } else if (countryExternalDialPrefix.isEmpty()) {
+ // Throw IAE
+ throw new IllegalArgumentException("countryExternalDialPrefix is empty"); //NOI18N
} else if (null == countryI18nKey) {
// Throw NPE
throw new NullPointerException("countryI18nKey is null"); //NOI18N
StringUtils.compare(this.getCountryCode(), country.getCountryCode()),
// ... and phone code, too
this.getCountryPhoneCode().compareTo(country.getCountryPhoneCode()),
- // ... then last i18n key
+ // ... then i18n key
StringUtils.compare(this.getCountryI18nKey(), country.getCountryI18nKey()),
// ... abroad dial prefix
StringUtils.compare(this.getCountryAbroadDialPrefix(), country.getCountryAbroadDialPrefix()),