java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setOnLongClickListener(android.view.View$OnLongClickListener)' on a null object reference

GitHub | kelson42 | 4 months ago
  1. 0

    GitHub comment 36#239634958

    GitHub | 4 months ago | kelson42
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setOnLongClickListener(android.view.View$OnLongClickListener)' on a null object reference
  2. 0

    android tests failing because appium's apidemos is crashing

    GitHub | 2 years ago | jlipps
    java.lang.RuntimeException: Unable to start activity ComponentInfo{io.appium.android.apis/io.appium.android.apis.app.StatusBarNotifications}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
  3. 0

    GitHub comment 8#129288636

    GitHub | 1 year ago | agungR
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.cube/com.example.cube.InputActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    dismiss() crash

    GitHub | 1 year ago | gintechsystems
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.ViewGroup.removeView(android.view.View)' on a null object reference
  6. 0

    Buttons in mapsforge

    Google Groups | 2 months ago | Medyn
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.lifemakers.mapsforge/com.example.lifemakers.mapsforge.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.RelativeLayout.addView(android.view.View, int)' on a null object reference

    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 virtual method 'void android.view.View.setOnLongClickListener(android.view.View$OnLongClickListener)' on a null object reference

      at org.kiwix.kiwixmobile.KiwixMobileActivity.initAllMenuItems()
    2. org.kiwix.kiwixmobile
      KiwixMobileActivity.onCreateOptionsMenu
      1. org.kiwix.kiwixmobile.KiwixMobileActivity.initAllMenuItems(KiwixMobileActivity.java:988)
      2. org.kiwix.kiwixmobile.KiwixMobileActivity.onCreateOptionsMenu(KiwixMobileActivity.java:1389)
      2 frames
    3. Android Platform
      Activity.onCreatePanelMenu
      1. android.app.Activity.onCreatePanelMenu(Activity.java:2959)
      1 frame
    4. Android Support v4
      FragmentActivity.onCreatePanelMenu
      1. android.support.v4.app.FragmentActivity.onCreatePanelMenu(FragmentActivity.java:358)
      1 frame
    5. Android v7
      ToolbarActionBar$1.run
      1. android.support.v7.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:88)
      2. android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.onCreatePanelMenu(AppCompatDelegateImplBase.java:270)
      3. android.support.v7.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:88)
      4. android.support.v7.app.ToolbarActionBar.populateOptionsMenu(ToolbarActionBar.java:454)
      5. android.support.v7.app.ToolbarActionBar$1.run(ToolbarActionBar.java:61)
      5 frames
    6. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:145)
      4. android.app.ActivityThread.main(ActivityThread.java:6117)
      4 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
      2 frames