JakeWharton/ActionBarSherlock — Issue #188: NullPointerException When Menu Title is not set
Author: xeudoxus
Created: 2012-01-15 06:46:50+00:00
State: open

The NullPointerException happens when the "Menu Title" is not set (It was not an issue in the non 4.0 beta).

# Example:
```xml

```

# Current
```java
@Override
public String toString() {
return mTitle.toString();
}
```

# ToFix
```java
@Override
public String toString() {
if (mTitle != null) {
return mTitle.toString();
}
return "";
}
```

http://github.com/JakeWharton/ActionBarSherlock/blob/master/library/src/com/actionbarsherlock/internal/view/menu/MenuItemImpl.java#L489

Its really not a critical issue, Ill let you know if I find more.

Thanks,
-Matt