java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.FragmentTransaction android.app.FragmentManager.beginTransaction()' on a null object reference

Stack Overflow | Adnan Sheikh | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    App Stops when using countdown timer

    Stack Overflow | 5 months ago | Adnan Sheikh
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.FragmentTransaction android.app.FragmentManager.beginTransaction()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'android.app.FragmentTransaction android.app.FragmentManager.beginTransaction()' on a null object reference

      at com.example.sheikhspc.testapp.Question1$1.onFinish()
    2. com.example.sheikhspc
      Question1$1.onFinish
      1. com.example.sheikhspc.testapp.Question1$1.onFinish(Question1.java:58)
      1 frame
    3. Android Platform
      ActivityThread.main
      1. android.os.CountDownTimer$1.handleMessage(CountDownTimer.java:127)
      2. android.os.Handler.dispatchMessage(Handler.java:102)
      3. android.os.Looper.loop(Looper.java:135)
      4. android.app.ActivityThread.main(ActivityThread.java:5343)
      4 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames