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: Unable to start activity ComponentInfo{com.winfox.drsmart/com.winfox.drsmart.MainActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2092) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2117) at android.app.ActivityThread.access$700(ActivityThread.java:134) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1218) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4867) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at com.activeandroid.query.From.addArguments(From.java:160) at com.activeandroid.query.From.where(From.java:100) at com.winfox.drsmart.db.PatientVisitsDb.getVisitsByPatient(PatientVisitsDb.java:51) at com.winfox.drsmart.fragments.PatientProfileFragment.initViews(PatientProfileFragment.java:206) at com.winfox.drsmart.fragments.PatientProfileFragment.onCreateView(PatientProfileFragment.java:61) at android.support.v4.app.Fragment.performCreateView(Fragment.java:2080) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1108) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1290) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1272) at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2149) at android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:201) at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:600) at android.support.v7.app.AppCompatActivity.onStart(AppCompatActivity.java:178) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1178) at android.app.Activity.performStart(Activity.java:5057) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2065) ... 11 more
No Bugmate found.