ASNE icon indicating copy to clipboard operation
ASNE copied to clipboard

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

Open philippeluickx opened this issue 9 years ago • 2 comments

I got this crash report just now through Fabric. Not sure what is happening here... Might be related to https://github.com/gorbin/ASNE/issues/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 avatar Jan 14 '16 12:01 philippeluickx

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

philippeluickx avatar Jan 14 '16 14:01 philippeluickx

tnx bro sloved it

savaj1996 avatar Dec 24 '19 14:12 savaj1996