finditem() doesn't find menu, stuck with NullPointerException
- by fdansv
I'm stuck while changing some properties on my options menu at onCreateOptionsMenu(). It seems like findItem() returns null, even though I'm pretty sure that the reference to the menu item is correct. My code looks as follows:
@Override
public boolean onCreateOptionsMenu(Menu menu) {
…