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

NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference #104

Open
philippeluickx opened this issue Jan 14, 2016 · 2 comments
Labels

Comments

@philippeluickx
Copy link

I got this crash report just now through Fabric. Not sure what is happening here...
Might be related to #52 ?

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
at android.content.ComponentName.(ComponentName.java:77)
at android.content.Intent.(Intent.java:4010)
at com.github.gorbin.asne.linkedin.LinkedInSocialNetwork.requestLogin(LinkedInSocialNetwork.java:124)
at com.github.gorbin.asne.core.SocialNetwork.requestLogin(SocialNetwork.java:205)
at com.recruitmenteventapp.mobile.android.authenticator.ASNEFragment$1.onClick(ASNEFragment.java:127)
at android.view.View.performClick(View.java:4764)
at android.view.View$PerformClick.run(View.java:19844)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5297)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:908)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703)

@philippeluickx
Copy link
Author

Allright, so I get this when playing around with rotating the device...

Edit: got the hint from: http://stackoverflow.com/questions/23594332/android-new-intent-causes-nullpointerexception-in-asynctask

@savaj1996
Copy link

tnx bro sloved it

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

3 participants