AlmogBaku / IntlPhoneInput

International phone input for Android
Other
164 stars 96 forks source link

making app crash #32

Open AbdullahRaza opened 6 years ago

AbdullahRaza commented 6 years ago

hi,

When we select Saintbarthelemy, it has country code +590, which same as some other countries like Saint Martin. so This code decides the country code upon format of remaining number. if that number is invalid then this String region = mPhoneUtil.getRegionCodeForNumber(phoneNumber); returns null. upon next line int countryIdx = mCountries.indexOfIso(region); in indexOfIso method .. toUpperCase is being called upon region which produces null pointer exception. image

Pardon me if anything is wrong with creating this issue

Thanks