java.lang.NullPointerException

Attempt to invoke virtual method 'void android.support.v7.widget.SearchView.a()' on a null object reference

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

Stack trace

  • java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.SearchView.a()' on a null object reference at pzy64.pocketmath.summary.SearchActivity.onCreateOptionsMenu(Unknown Source) at android.app.Activity.onCreatePanelMenu(Activity.java:2866) at android.support.v4.app.s.onCreatePanelMenu(Unknown Source) at android.support.v7.view.n.onCreatePanelMenu(Unknown Source) at android.support.v7.a.ai.onCreatePanelMenu(Unknown Source) at android.support.v7.view.n.onCreatePanelMenu(Unknown Source) at android.support.v7.a.bk.run(Unknown Source) at android.os.Handler.handleCallback(Handler.java:815) at android.os.Handler.dispatchMessage(Handler.java:104) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5550) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:955) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:750)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

We couldn't find other users who have seen this exception.