IntlPhoneInput icon indicating copy to clipboard operation
IntlPhoneInput copied to clipboard

ArrayIndexOutOfBoundsException @ IntlPhoneInput.setEmptyDefault():164

Open alexnivanov opened this issue 6 years ago • 3 comments

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)

alexnivanov avatar May 30 '18 07:05 alexnivanov

Having same issue.

IAmDarush avatar Jun 16 '18 22:06 IAmDarush

any solution ?

arpitsingh21 avatar Jun 27 '19 06:06 arpitsingh21

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.

itzbernoulli avatar May 08 '20 05:05 itzbernoulli