java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.ActionMode$Callback.onCreateActionMode(android.view.ActionMode, android.view.Menu)' on a null object reference

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 GitHub by shruity
, 1 year ago
Attempt to invoke interface method 'boolean android.view.ActionMode$Callback.onCreateActionMode(android.view.ActionMode, android.view.Menu)' on a null object reference
via GitHub by AndyScherzinger
, 1 year ago
Attempt to invoke interface method 'boolean android.view.ActionMode$Callback.onCreateActionMode(android.view.ActionMode, android.view.Menu)' on a null object reference
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.ActionMode$Callback.onCreateActionMode(android.view.ActionMode, android.view.Menu)' on a null object reference
at android.support.v7.view.SupportActionModeWrapper$CallbackWrapper.onCreateActionMode(SupportActionModeWrapper.java:155)
at android.support.v7.app.AppCompatDelegateImplV7$ActionModeCallbackWrapperV7.onCreateActionMode(AppCompatDelegateImplV7.java:1742)
at android.support.v7.app.AppCompatDelegateImplV7.startSupportActionModeFromWindow(AppCompatDelegateImplV7.java:802)
at android.support.v7.app.AppCompatDelegateImplV7.startSupportActionMode(AppCompatDelegateImplV7.java:696)
at android.support.v7.app.AppCompatDelegateImplV14$AppCompatWindowCallbackV14.startAsSupportActionMode(AppCompatDelegateImplV14.java:187)
at com.android.internal.policy.PhoneWindow$DecorView.startActionMode(PhoneWindow.java:2748)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:812)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:812)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:812)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:812)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:812)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:812)
at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:812)
at android.view.View.startActionMode(View.java:5335)
at android.view.View.startActionMode(View.java:5319)
at android.widget.AbsListView.performLongPress(AbsListView.java:3118)
at android.widget.AbsListView$CheckForLongPress.run(AbsListView.java:3059)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

Users with the same issue

242 times, 1 year ago

Write tip

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