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

Possible fix for null context on resume #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

abrauchli
Copy link

Happened on several occasions with current master code but cannot be reliably reproduced. The stack trace always looks exactly the same:

USER_COMMENT=null
ANDROID_VERSION=4.1.2
APP_VERSION_NAME=0.9.0
BRAND=Google
PHONE_MODEL=Nexus S
CUSTOM_DATA=
STACK_TRACE=java.lang.RuntimeException: Unable to resume activity
{org.xbmc.android.remote/org.xbmc.android.remote.presentation.activity.NowPlayingActivity}:
java.lang.NullPointerException
android.app.ActivityThread.performResumeActivity(ActivityThread.java:2701)
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2729)
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2215)

Caused by: java.lang.NullPointerException
at android.content.ComponentName.(ComponentName.java:75)
at android.content.Intent.(Intent.java:3324)
org.xbmc.android.jsonrpc.io.ConnectionManager.bindService(ConnectionManager.java:221)
org.xbmc.android.jsonrpc.io.ConnectionManager.call(ConnectionManager.java:161)
org.xbmc.android.remote.business.cm.AbstractManager.callRaw(AbstractManager.java:112)
org.xbmc.android.remote.business.cm.ControlManager.getCurrentlyPlaying(ControlManager.java:154)
org.xbmc.android.remote.business.NowPlayingPollerThread.subscribe(NowPlayingPollerThread.java:121)
org.xbmc.android.remote.presentation.controller.NowPlayingController.onActivityResume(NowPlayingController.java:218)
org.xbmc.android.remote.presentation.activity.NowPlayingActivity.onResume(NowPlayingActivity.java:260)
android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1184)

USER_COMMENT=null
ANDROID_VERSION=4.1.2
APP_VERSION_NAME=0.9.0
BRAND=Google
PHONE_MODEL=Nexus S
CUSTOM_DATA=
STACK_TRACE=java.lang.RuntimeException: Unable to resume activity
{org.xbmc.android.remote/org.xbmc.android.remote.presentation.activity.NowPlayingActivity}:
java.lang.NullPointerException
android.app.ActivityThread.performResumeActivity(ActivityThread.java:2701)
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2729)
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2215)

Caused by: java.lang.NullPointerException
at android.content.ComponentName.<init>(ComponentName.java:75)
at android.content.Intent.<init>(Intent.java:3324)
org.xbmc.android.jsonrpc.io.ConnectionManager.bindService(ConnectionManager.java:221)
org.xbmc.android.jsonrpc.io.ConnectionManager.call(ConnectionManager.java:161)
org.xbmc.android.remote.business.cm.AbstractManager.callRaw(AbstractManager.java:112)
org.xbmc.android.remote.business.cm.ControlManager.getCurrentlyPlaying(ControlManager.java:154)
org.xbmc.android.remote.business.NowPlayingPollerThread.subscribe(NowPlayingPollerThread.java:121)
org.xbmc.android.remote.presentation.controller.NowPlayingController.onActivityResume(NowPlayingController.java:218)
org.xbmc.android.remote.presentation.activity.NowPlayingActivity.onResume(NowPlayingActivity.java:260)
android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1184)
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

Successfully merging this pull request may close these issues.

1 participant