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

GitHub | shruity | 4 months ago
  1. 0

    App Crashing on long press

    GitHub | 4 months ago | shruity
    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
  2. 0

    GitHub comment 1350#167690481

    GitHub | 11 months ago | AndyScherzinger
    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
  3. 0

    Long press on items is throwing NullPointerExceptions

    GitHub | 3 years ago | Saketme
    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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NullpointerException in Beta

    GitHub | 12 months ago | stefan-niedermann
    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
  6. 0

    [Beta 20151213] App crashes when long pressing picture in grid view

    GitHub | 12 months ago | enoch85
    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

  1. ajinkya_w 242 times, last 2 months ago
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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 com.android.internal.policy.PhoneWindow$DecorView$ActionModeCallback2Wrapper.onCreateActionMode()
  2. Android
    PhoneWindow$DecorView$ActionModeCallback2Wrapper.onCreateActionMode
    1. com.android.internal.policy.PhoneWindow$DecorView$ActionModeCallback2Wrapper.onCreateActionMode(PhoneWindow.java:3531)
    1 frame
  3. Android v7
    AppCompatDelegateImplV23$AppCompatWindowCallbackV23.onWindowStartingActionMode
    1. android.support.v7.view.SupportActionModeWrapper$CallbackWrapper.onCreateActionMode(SupportActionModeWrapper.java:155)
    2. android.support.v7.app.AppCompatDelegateImplV7$ActionModeCallbackWrapperV7.onCreateActionMode(AppCompatDelegateImplV7.java:1742)
    3. android.support.v7.app.AppCompatDelegateImplV7.startSupportActionModeFromWindow(AppCompatDelegateImplV7.java:802)
    4. android.support.v7.app.AppCompatDelegateImplV7.startSupportActionMode(AppCompatDelegateImplV7.java:696)
    5. android.support.v7.app.AppCompatDelegateImplV14$AppCompatWindowCallbackV14.startAsSupportActionMode(AppCompatDelegateImplV14.java:187)
    6. android.support.v7.app.AppCompatDelegateImplV23$AppCompatWindowCallbackV23.onWindowStartingActionMode(AppCompatDelegateImplV23.java:64)
    6 frames
  4. Android
    PhoneWindow$DecorView.startActionModeForChild
    1. com.android.internal.policy.PhoneWindow$DecorView.startActionMode(PhoneWindow.java:2748)
    2. com.android.internal.policy.PhoneWindow$DecorView.startActionModeForChild(PhoneWindow.java:2729)
    2 frames
  5. Android Platform
    ActivityThread.main
    1. android.view.ViewGroup.startActionModeForChild(ViewGroup.java:812)
    2. android.view.ViewGroup.startActionModeForChild(ViewGroup.java:812)
    3. android.view.ViewGroup.startActionModeForChild(ViewGroup.java:812)
    4. android.view.ViewGroup.startActionModeForChild(ViewGroup.java:812)
    5. android.view.ViewGroup.startActionModeForChild(ViewGroup.java:812)
    6. android.view.ViewGroup.startActionModeForChild(ViewGroup.java:812)
    7. android.view.ViewGroup.startActionModeForChild(ViewGroup.java:812)
    8. android.view.View.startActionMode(View.java:5335)
    9. android.view.View.startActionMode(View.java:5319)
    10. android.widget.AbsListView.performLongPress(AbsListView.java:3118)
    11. android.widget.AbsListView$CheckForLongPress.run(AbsListView.java:3059)
    12. android.os.Handler.handleCallback(Handler.java:739)
    13. android.os.Handler.dispatchMessage(Handler.java:95)
    14. android.os.Looper.loop(Looper.java:148)
    15. android.app.ActivityThread.main(ActivityThread.java:5417)
    15 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    2 frames