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

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: Unable to start activity ComponentInfo{nl.hnogames.domoticz.premium
  • l.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 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2484) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2544) at android.app.ActivityThread.access$900(ActivityThread.java:150) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1394) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:168) at android.app.ActivityThread.main(ActivityThread.java:5845) 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 'java.lang.String android.support.v4.app.Fragment.toString()' on a null object reference at nl.hnogames.domoticz.app.DomoticzDashboardFragment.onAttachFragment(DomoticzDashboardFragment.java:228) at nl.hnogames.domoticz.app.DomoticzDashboardFragment.checkConnection(DomoticzDashboardFragment.java:257) at nl.hnogames.domoticz.app.DomoticzDashboardFragment.onActivityCreated(DomoticzDashboardFragment.java:217) at android.support.v4.app.Fragment.performActivityCreated(Fragment.java:1983) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1092) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1234) at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2046) at android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:174) at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:597) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1288) at android.app.Activity.performStart(Activity.java:6264) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2447) ... 9 more
No Bugmate found.