JakeWharton/ActionBarSherlock — Issue #184: MenuItem must have android:title attribute set otherwise Exception thrown
Author: carlospuk
Created: 2012-01-14 17:29:07+00:00
State: open

Steps to reproduce:

Define a menu item with no android:title attribute, e.g.

When the item is clicked, a NullReferenceException is thrown in MenuItemImpl.java in method toString():

@Override
public String toString() {
return mTitle.toString(); <<<<<--- HERE
}

Suggested fix:

@Override
public String toString() {
return (mTitle != null) ? mTitle.toString() : "";
}