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 on launch #300

Closed
tdjsnelling opened this issue Jul 28, 2016 · 4 comments
Closed

App crashes on launch #300

tdjsnelling opened this issue Jul 28, 2016 · 4 comments
Labels
Milestone

Comments

@tdjsnelling
Copy link

Have just pulled latest changes and app crashes on launch.

07-28 11:43:28.677 30063-30063/com.omkarmoghe.pokemap E/AndroidRuntime: FATAL EXCEPTION: main Process: com.omkarmoghe.pokemap, PID: 30063 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.omkarmoghe.pokemap/com.omkarmoghe.pokemap.views.LoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.contains(java.lang.CharSequence)' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2426) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5443) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.contains(java.lang.CharSequence)' on a null object reference at com.omkarmoghe.pokemap.controllers.app_preferences.PokemapSharedPreferences.getLoginInfo(PokemapSharedPreferences.java:66) at com.omkarmoghe.pokemap.views.LoginActivity.onCreate(LoginActivity.java:153) at android.app.Activity.performCreate(Activity.java:6245) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1130) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490)  at android.app.ActivityThread.-wrap11(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:148)  at android.app.ActivityThread.main(ActivityThread.java:5443)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 

@Giggitybyte
Copy link

Giggitybyte commented Jul 28, 2016

Does the latest dev build work for you? Building the app through Android Studio never seems to work well for me.

@tdjsnelling
Copy link
Author

Have not tried the build yet, this is the first problem I've had with android studio though. Been fine thus far.

@xomikronx
Copy link

Just pulled latest changes 10 minutes ago. It's crashing on me too.

@s7092910
Copy link
Contributor

Fix in PR #313

@comann comann added this to the 0.1 milestone Jul 28, 2016
@comann comann added the bug label Jul 28, 2016
socrates2510 pushed a commit to socrates2510/Pokemap that referenced this issue Jul 28, 2016
@comann comann closed this as completed Jul 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants