java.lang.RuntimeException: Unable to start activity ComponentInfo{com.winfox.drsmart/com.winfox.drsmart.MainActivity}: java.lang.NullPointerException

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by A.Hrybuk
, 9 months ago
Unable to start activity ComponentInfo{com.winfox.drsmart/com.winfox.drsmart.MainActivity}: java.lang.NullPointerException
via Stack Overflow by Mina Dahesh
, 5 months ago
Unable to start activity ComponentInfo{...LogActivity}: java.lang.NullPointerException
via unity3d.com by Unknown author, 1 year ago
Unable to start activity ComponentInfo{*.*.*/com.unity3d.player.UnityPlayerNativeActivity}: java.lang.NullPointerException
via Stack Overflow by Rabia Mehmood
, 2 years ago
Unable to start activity ComponentInfo{com.example.app/com.example.app.Home1}: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.app/com.example.app.CameraList}: java.lang.NullPointerException
via Stack Overflow by Didzseeker
, 7 months ago
Unable to start activity ComponentInfo{com.android.settings/com.android.settings.MiniromTebEktipiti}: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.Settings}: java.lang.NullPointerException
via GitHub by blair1618
, 1 year ago
Unable to start activity ComponentInfo{com.mapzen.erasermap/com.mapzen.erasermap.view.MainActivity}: java.lang.NullPointerException
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.winfox.drsmart/com.winfox.drsmart.MainActivity}: 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.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)
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)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.