Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

NullPointerException When Matching Links in PostLinkActivity #14

Closed
paddycarver opened this issue Aug 8, 2011 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@paddycarver
Copy link

There appears to be a NPE when logging the link that was shared with the app. Most likely cause is that there was no EXTRA_TEXT in the Intent, which would make the "link" String null.

Syslog below:

java.lang.RuntimeException: Unable to resume activity {com.suchagit.android2cloud/com.suchagit.android2cloud.PostLinkActivity}: java.lang.NullPointerException: println needs a message
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2124)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2139)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1672)
at android.app.ActivityThread.access$1500(ActivityThread.java:117)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException: println needs a message
at android.util.Log.println_native(Native Method)
at android.util.Log.d(Log.java:137)
at com.suchagit.android2cloud.PostLinkActivity.onResume(PostLinkActivity.java:122)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1150)
at android.app.Activity.performResume(Activity.java:3832)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2114)

@ghost ghost assigned paddycarver Aug 8, 2011
@paddycarver
Copy link
Author

Should be fixed.

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

No branches or pull requests

1 participant