Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Crashes with 'Caused by: java.lang.IllegalArgumentException: Unsupported ISO 3166 country: _SP' #4

Open
shwtnk7 opened this issue Dec 25, 2018 · 1 comment

Comments

@shwtnk7
Copy link

shwtnk7 commented Dec 25, 2018

Hi,
I have used the exact code which you have provided on Github. Still , the app crashes when i chose " Currency and Countries Dialog" from the menu option.
Below is the error it shows -

12-25 21:45:40.407 22599-22653/example.example.com.currencylib E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1 Process: example.example.com.currencylib, PID: 22599 java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:353) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383) at java.util.concurrent.FutureTask.setException(FutureTask.java:252) at java.util.concurrent.FutureTask.run(FutureTask.java:271) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) Caused by: java.lang.IllegalArgumentException: Unsupported ISO 3166 country: _SP at java.util.Currency.getInstance(Currency.java:139) at com.scrounger.countrycurrencypicker.library.Currency.getCurrency(Currency.java:123) at com.scrounger.countrycurrencypicker.library.Country.getCountryWithCurrency(Country.java:140) at com.scrounger.countrycurrencypicker.library.Country.listAllWithCurrencies(Country.java:177) at com.scrounger.countrycurrencypicker.library.Currency.getCurrencyWithCountries(Currency.java:151) at com.scrounger.countrycurrencypicker.library.Currency.listAllWithCountries(Currency.java:201) at com.scrounger.countrycurrencypicker.library.CountryCurrencyPicker$FilterListAsync.doInBackground(CountryCurrencyPicker.java:218) at com.scrounger.countrycurrencypicker.library.CountryCurrencyPicker$FilterListAsync.doInBackground(CountryCurrencyPicker.java:197) at android.os.AsyncTask$2.call(AsyncTask.java:333) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)  at java.lang.Thread.run(Thread.java:764) 

@ElKacimiMohamed
Copy link

khouya chouf lina m3ak chi 7al ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@shwtnk7 @ElKacimiMohamed and others