Buggy code:
public class MainActivity extends ActionBarActivity implements ActionBar . TabListener , View . OnClickListener , ListView . OnItemClickListener { private static final String PREFERENCES = "LOGIN_PREFERENCES" ; private static final String TAG = "MainActivity" ; private static int CACHE_SIZE = 512 ; public String authToken ; public String authEmail ; private FragmentManager mFragmentManager ; private DrawerLayout mDrawerLayout ; private RelativeLayout mDrawer ; private ListView mDrawerList ; private ActionBarDrawerToggle mDrawerToggle ; private TextView mUserName ; private TextView mUserRole ; public CharSequence mTitle ; private PagerTabStrip mPagerTabStrip ; private ViewPager viewPager ; private TabsPagerAdapter mAdapter ; private View mContainer ; private ProgressBar mProgress ; private Toolbar mToolBar ; private NetworkManager mNetworkManager ; private SharedPreferences mPreferences ; private User mUser ; private Integer mUserId ; private Task mFieldReportTask ; private LruCache < Integer , Drawable > mSiteImages ; private LruCache < Integer , Drawable > mMiniSiteImages ; private List < User > mUsers ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } private void setUserObject ( ) { } private void getUserFromPreferences ( String user ) { } public void makeHomeRequest ( ) { } private void initializeCache ( ) { } private void initializeViews ( ) { } public void setNavInfo ( ) { } public void updateTitle ( Fragment f ) { } public void displayTaskView ( boolean toggle ) { } public void replaceFragment ( Fragment newFragment ) { } private void initializeFragments ( ) { } @ Override public void onTabReselected ( Tab tab , FragmentTransaction ft ) { } @ Override public void onTabSelected ( Tab tab , FragmentTransaction ft ) { } @ Override public void onTabUnselected ( ActionBar . Tab tab , FragmentTransaction ft ) { } public boolean onOptionsItemSelected ( MenuItem item ) { } private void initializeNavigationDrawer ( ) { } @ Override protected void onPostCreate ( Bundle savedInstanceState ) { } @ Override public void onConfigurationChanged ( Configuration newConfig ) { } public void onItemClick ( AdapterView parent , View view , int position , long id ) { switch ( position ) { case 0 : replaceFragment ( TaskFragment . newInstance ( 0 ) ) ; break ; case 1 : replaceFragment ( SiteListFragment . newInstance ( ) ) ; break ; case 2 : replaceFragment ( UserFragment . newInstance ( mUser ) ) ; break ; case 3 : replaceFragment ( AboutFragment . newInstance ( ) ) ; break ; case 4 : MainActivity . logoutCurrentUser ( this ) ; break ; default : break ; } <START_BUG> mDrawerLayout . closeDrawer ( mDrawerList ) ; <END_BUG> } public static void logoutCurrentUser ( Activity activity ) { } @ Override public void onClick ( View view ) { } public NetworkManager getNetworkManager ( ) { } public void setNetworkManager ( NetworkManager networkManager ) { } public void setUser ( User user ) { } public User getUser ( ) { } public void setUsers ( List < User > users ) { } public List < User > getUsers ( ) { } public int getUserId ( ) { } public void setFieldReportTask ( Task task ) { } public Task getFieldReportTask ( ) { } public ProgressBar getSpinner ( ) { } public void setMenuAction ( boolean setMenu ) { } public void setBackArrow ( ) { } public void setMenu ( ) { } }

Fix:
mDrawerLayout . closeDrawer ( mDrawer ) ;