AlmogBaku / IntlPhoneInput

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

ArrayIndexOutOfBoundsException @ IntlPhoneInput.setEmptyDefault():164 #41

Open alexnivanov opened 6 years ago

alexnivanov commented 6 years ago

Stack trace:

Caused by java.lang.ArrayIndexOutOfBoundsExceptionlength=303; index=-1 Raw Text
--
  | java.util.ArrayList.get (ArrayList.java:310)
  | net.rimoto.intlphoneinput.IntlPhoneInput.setEmptyDefault (IntlPhoneInput.java:164)
  | net.rimoto.intlphoneinput.IntlPhoneInput.setEmptyDefault (IntlPhoneInput.java:172)
  | net.rimoto.intlphoneinput.IntlPhoneInput.setDefault (IntlPhoneInput.java:150)
  | net.rimoto.intlphoneinput.IntlPhoneInput.init (IntlPhoneInput.java:92)
  | net.rimoto.intlphoneinput.IntlPhoneInput.<init> (IntlPhoneInput.java:64)
IAmDarush commented 6 years ago

Having same issue.

arpitsingh21 commented 5 years ago

any solution ?

itzbernoulli commented 4 years ago

For those that might have this issue in the future, I think it happens when an invalid ISO code is used with setEmptyDefault method. so play around with the ISO codes.