freezy/android-xbmcremote — pull request #77 by abrauchli (2013-01-25 21:25:30+00:00)
Title: Possible fix for null context on resume

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)