java.lang.NullPointerException

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at com.example.hieroglyph.Menu.onOptionsItemSelected()
  2. com.example.hieroglyph
    Menu.onOptionsItemSelected
    1. com.example.hieroglyph.Menu.onOptionsItemSelected(Menu.java:64)
    1 frame
  3. Android Platform
    Activity.onMenuItemSelected
    1. android.app.Activity.onMenuItemSelected(Activity.java:2600)
    1 frame
  4. Android
    ListMenuPresenter.onItemClick
    1. com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:1012)
    2. com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:748)
    3. com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
    4. com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:891)
    5. com.android.internal.view.menu.ListMenuPresenter.onItemClick(ListMenuPresenter.java:166)
    5 frames
  5. Android Platform
    ActivityThread.main
    1. android.widget.AdapterView.performItemClick(AdapterView.java:299)
    2. android.widget.AbsListView.performItemClick(AbsListView.java:1113)
    3. android.widget.AbsListView$PerformClick.run(AbsListView.java:2911)
    4. android.widget.AbsListView$3.run(AbsListView.java:3645)
    5. android.os.Handler.handleCallback(Handler.java:733)
    6. android.os.Handler.dispatchMessage(Handler.java:95)
    7. android.os.Looper.loop(Looper.java:136)
    8. android.app.ActivityThread.main(ActivityThread.java:5001)
    8 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
    2 frames
  8. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame