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

Stack Overflow | tomhogenkamp | 4 months ago
  1. 0

    Why does getActivity returns null in Fragment in ViewPager?

    Stack Overflow | 4 months ago | tomhogenkamp
    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
  2. 0

    pressing on skip and done button, app crashed showing this error

    GitHub | 8 months ago | milon87
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.support.v4.app.FragmentActivity.getApplicationContext()' on a null object reference
  3. 0

    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.support.v4.app.FragmentActivity.getApplicationContext()' on a null object reference

    GitHub | 9 months ago | galadril
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.support.v4.app.FragmentActivity.getApplicationContext()' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.support.v4.app.FragmentActivity.getApplicationContext()' on a null object reference

    GitHub | 7 months ago | galadril
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.support.v4.app.FragmentActivity.getApplicationContext()' on a null object reference
  6. 0

    How to use POST in AsyncHttpClient

    Stack Overflow | 1 year ago | rahman
    java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.support.v4.app.FragmentActivity.getApplicationContext()' on a null object reference

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. com.tomhogenkamp.personalcalc
      SettingsFragment.onActivityResult
      1. com.tomhogenkamp.personalcalc.CalculatorFragment.setBackground(CalculatorFragment.java:558)
      2. com.tomhogenkamp.personalcalc.MainActivity.newMessage(MainActivity.java:69)
      3. com.tomhogenkamp.personalcalc.SettingsFragment.onActivityResult(SettingsFragment.java:118)
      3 frames
    3. Android Support v4
      FragmentActivity.onActivityResult
      1. android.support.v4.app.FragmentActivity.onActivityResult(FragmentActivity.java:165)
      1 frame
    4. Android Platform
      ActivityThread.deliverResults
      1. android.app.Activity.dispatchActivityResult(Activity.java:6467)
      2. android.app.ActivityThread.deliverResults(ActivityThread.java:4009)
      2 frames