-2
E/AndroidRuntime: FATAL EXCEPTION: main
    java.lang.NullPointerException
        at com.example.android.dermadetect.DoctorAdapter$1.onClick(DoctorAdapter.java:63)
        at android.view.View.performClick(View.java:4223)
        at android.view.View$PerformClick.run(View.java:17275)
        at android.os.Handler.handleCallback(Handler.java:615)
        at android.os.Handler.dispatchMessage(Handler.java:92)
        at android.os.Looper.loop(Looper.java:137)
        at android.app.ActivityThread.main(ActivityThread.java:4921)
        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:1038)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
        at dalvik.system.NativeStart.main(Native Method)
eyllanesc
  • 235,170
  • 19
  • 170
  • 241
  • you should check your xml file and java file. check this DoctorAdapter.java line 63 – S T Oct 29 '20 at 04:21
  • Please post what you have code and xml file – Ashish Oct 29 '20 at 04:33
  • Absent a [mcve] with code that reproduces the problem, we can only point you to [What is a NullPointerException, and how do I fix it?](https://stackoverflow.com/q/218384/3744182). – dbc Oct 29 '20 at 04:42
  • 1
    Does this answer your question? [What is a NullPointerException, and how do I fix it?](https://stackoverflow.com/questions/218384/what-is-a-nullpointerexception-and-how-do-i-fix-it) – dbc Oct 29 '20 at 04:42
  • Were gonna need more than that. NullPointerException is probably the most commonplace exception in java. – Nate T Oct 29 '20 at 05:06

1 Answers1

1
Try{
...
}
catch(NullPointerException e) {

}