java.lang.NullPointerException

Stack Overflow | henry | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at com.ant.henry.gatesng.HomeActivity.doShare()
  2. com.ant.henry
    HomeActivity.onOptionsItemSelected
    1. com.ant.henry.gatesng.HomeActivity.doShare(HomeActivity.java:1173)
    2. com.ant.henry.gatesng.HomeActivity.onOptionsItemSelected(HomeActivity.java:1159)
    2 frames
  3. Android Platform
    Activity.onMenuItemSelected
    1. android.app.Activity.onMenuItemSelected(Activity.java:2647)
    1 frame
  4. Android Support v4
    FragmentActivity.onMenuItemSelected
    1. android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:421)
    1 frame
  5. Android v7
    ActionMenuView$MenuBuilderCallback.onMenuItemSelected
    1. android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:188)
    2. android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:103)
    3. android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:103)
    4. android.support.v7.app.ToolbarActionBar$2.onMenuItemClick(ToolbarActionBar.java:69)
    5. android.support.v7.widget.Toolbar$1.onMenuItemClick(Toolbar.java:202)
    6. android.support.v7.widget.ActionMenuView$MenuBuilderCallback.onMenuItemSelected(ActionMenuView.java:761)
    6 frames
  6. android.support.v7
    MenuPopup.onItemClick
    1. android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:810)
    2. android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
    3. android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:957)
    4. android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:947)
    5. android.support.v7.view.menu.MenuPopup.onItemClick(MenuPopup.java:126)
    5 frames
  7. Android Platform
    ActivityThread.main
    1. android.widget.AdapterView.performItemClick(AdapterView.java:299)
    2. android.widget.AbsListView.performItemClick(AbsListView.java:1187)
    3. android.widget.AbsListView$PerformClick.run(AbsListView.java:3166)
    4. android.widget.AbsListView$3.run(AbsListView.java:4068)
    5. android.os.Handler.handleCallback(Handler.java:808)
    6. android.os.Handler.dispatchMessage(Handler.java:103)
    7. android.os.Looper.loop(Looper.java:193)
    8. android.app.ActivityThread.main(ActivityThread.java:5323)
    8 frames
  8. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  9. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
    2 frames
  10. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame