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

when i click third button city picker it will raise null object reference #1

Open
shailendra-rajpoot opened this issue Dec 31, 2018 · 10 comments

Comments

@shailendra-rajpoot
Copy link

12-31 15:00:07.817 21796-21796/com.zealtechnology.citystate E/Process: android_os_Process_getProcessNameByPid pid is 21796
android_os_Process_getProcessNameByPid value is ology.citystate
12-31 15:00:27.917 21796-21796/com.zealtechnology.citystate E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.zealtechnology.citystate, PID: 21796
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.vikktorn.picker.CityPicker.showDialog(android.support.v4.app.FragmentManager)' on a null object reference
at com.zealtechnology.citystate.MainActivity$3.onClick(MainActivity.java:130)
at android.view.View.performClick(View.java:4781)
at android.view.View$PerformClick.run(View.java:19907)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:160)
at android.app.ActivityThread.main(ActivityThread.java:5541)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)

@amirul12
Copy link

**When I click the city picker then throw the exception **
java.lang.IllegalArgumentException: No Cities Found! Did you call build()
at com.vikktorn.picker.CityPicker.showDialog(CityPicker.java:93)
at com.mandsti.amirul.countryandstrippayment.MainActivity$1.onClick(MainActivity.java:81)
at android.view.View.performClick(View.java:5740)
at android.view.View$PerformClick.run(View.java:22947)
at android.os.Handler.handleCallback(Handler.java:836)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:232)
at android.app.ActivityThread.main(ActivityThread.java:6661)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1106)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)

@princewaqasg
Copy link

princewaqasg commented Feb 20, 2019

some times when i select city then Application crushes. most of the exception happen when i select state and then select the city then on this application crushes.
how can it fix?

--------- beginning of crash
2019-02-20 13:17:10.028 11209-11209/com.working.locationsis.location E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.working.locationsis.location, PID: 11209
java.lang.IllegalArgumentException: No Cities Found! Did you call build()
at com.vikktorn.picker.CityPicker.showDialog(CityPicker.java:93)
at com.working.locationsis.location.MainActivity$3.onClick(MainActivity.java:133)
at android.view.View.performClick(View.java:6390)
at android.view.View$PerformClick.run(View.java:25270)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:187)
at android.app.ActivityThread.main(ActivityThread.java:7025)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:514)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:888)
2019-02-20 13:17:10.066 11209-11209/com.working.locationsis.location I/Process: Sending signal. PID: 11209 SIG: 9

@vikktorn
Copy link
Owner

vikktorn commented Feb 20, 2019 via email

@princewaqasg
Copy link

sir where is JSON file that i will update. can you tell me path

@vikktorn
Copy link
Owner

vikktorn commented Feb 20, 2019 via email

@princewaqasg
Copy link

thank you sir,

@vikktorn
Copy link
Owner

vikktorn commented Feb 20, 2019 via email

@princewaqasg
Copy link

Thank you Sir Thanks a lot You are 100% helpful thank you sir

@hvar90
Copy link

hvar90 commented Apr 10, 2019

i think is more useful only country and cities
is posible ue your library for choosing the country and showing all the cities?

@hvar90
Copy link

hvar90 commented Apr 11, 2019

Thank you Sir Thanks a lot You are 100% helpful thank you sir

have you completed the JSON ?
you should to share it so we could use it

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

5 participants