Add a null check, if it is null add a menu item or invalidate the menu.  Find some way of adding the menu item back in the view