java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

    • java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=65537, result=-1, data=Intent { dat=content: flg=0x1 }} to activity {com.tomhogenkamp.personalcalc/com.tomhogenkamp.personalcalc.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.support.v4.app.FragmentActivity.getApplicationContext()' on a null object reference at android.app.ActivityThread.deliverResults(ActivityThread.java:4013) at android.app.ActivityThread.handleSendResult(ActivityThread.java:4063) at android.app.ActivityThread.access$1400(ActivityThread.java:150) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1448) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:168) at android.app.ActivityThread.main(ActivityThread.java:5885) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.support.v4.app.FragmentActivity.getApplicationContext()' on a null object reference at com.tomhogenkamp.personalcalc.CalculatorFragment.setBackground(CalculatorFragment.java:558) at com.tomhogenkamp.personalcalc.MainActivity.newMessage(MainActivity.java:69) at com.tomhogenkamp.personalcalc.SettingsFragment.onActivityResult(SettingsFragment.java:118) at android.support.v4.app.FragmentActivity.onActivityResult(FragmentActivity.java:165) at android.app.Activity.dispatchActivityResult(Activity.java:6467) at android.app.ActivityThread.deliverResults(ActivityThread.java:4009)
    No Bugmate found.