java.lang.RuntimeException: Unable to start activity ComponentInfo{nl.hnogames.domoticz.premium/nl.hnogames.domoticz.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.support.v4.app.Fragment.toString()' on a null object reference

GitHub | galadril | 7 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

    java.lang.RuntimeException: Unable to start activity ComponentInfo{nl.hnogames.domoticz.premium/nl.hnogames.domoticz.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.support.v4.app.Fragment.toString()' on a null object reference

    GitHub | 7 months ago | galadril
    java.lang.RuntimeException: Unable to start activity ComponentInfo{nl.hnogames.domoticz.premium/nl.hnogames.domoticz.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.support.v4.app.Fragment.toString()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'java.lang.String android.support.v4.app.Fragment.toString()' on a null object reference

      at nl.hnogames.domoticz.app.DomoticzDashboardFragment.onAttachFragment()
    2. nl.hnogames.domoticz
      DomoticzDashboardFragment.onActivityCreated
      1. nl.hnogames.domoticz.app.DomoticzDashboardFragment.onAttachFragment(DomoticzDashboardFragment.java:228)
      2. nl.hnogames.domoticz.app.DomoticzDashboardFragment.checkConnection(DomoticzDashboardFragment.java:257)
      3. nl.hnogames.domoticz.app.DomoticzDashboardFragment.onActivityCreated(DomoticzDashboardFragment.java:217)
      3 frames
    3. Android Support v4
      FragmentActivity.onStart
      1. android.support.v4.app.Fragment.performActivityCreated(Fragment.java:1983)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1092)
      3. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
      4. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1234)
      5. android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2046)
      6. android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:174)
      7. android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:597)
      7 frames
    4. Android Platform
      ActivityThread.main
      1. android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1288)
      2. android.app.Activity.performStart(Activity.java:6264)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2447)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2544)
      5. android.app.ActivityThread.access$900(ActivityThread.java:150)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1394)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:168)
      9. android.app.ActivityThread.main(ActivityThread.java:5845)
      9 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
      2 frames