Program: 146509
Project: 146509
Buggy source:
/** 
 * Called when the activity is first created.
 */
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  AppRater.app_launched(this);
  BitmapDrawable bg=(BitmapDrawable)getResources().getDrawable(R.drawable.bg_striped);
  bg.setTileModeXY(Shader.TileMode.REPEAT,Shader.TileMode.REPEAT);
  ActionBar actionBar=getActionBar();
  if (actionBar != null) {
    actionBar.setBackgroundDrawable(bg);
  }
  SharedPreferences sharedPreferences=PreferenceManager.getDefaultSharedPreferences(this);
  alarmSet=sharedPreferences.getBoolean("String_Node_Str",false);
  if (alarmSet) {
    setRecurringAlarm(sharedPreferences.getLong("String_Node_Str",30000));
  }
  mDrawerListItems=getResources().getStringArray(R.array.NavSections);
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  mDrawerList=(ListView)findViewById(R.id.left_drawer);
  mDrawerList.setAdapter(new ArrayAdapter<>(this,R.layout.drawer_list_item,mDrawerListItems));
  mDrawerList.setOnItemClickListener(new DrawerItemClickListener());
  app=new App(this);
  mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,R.drawable.ic_drawer,R.string.app_name,R.string.app_name){
    public void onDrawerClosed(    View view){
      invalidateOptionsMenu();
    }
    public void onDrawerOpened(    View drawerView){
      invalidateOptionsMenu();
    }
  }
;
  mDrawerLayout.setDrawerListener(mDrawerToggle);
  getActionBar().setDisplayHomeAsUpEnabled(true);
  getActionBar().setHomeButtonEnabled(true);
  if (savedInstanceState == null) {
    getFragmentManager().beginTransaction().add(R.id.content_frame,mHomeFragment).commit();
  }
}

Fixed version (ground truth):
/** 
 * Called when the activity is first created.
 */
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  AppRater.app_launched(this);
  BitmapDrawable bg=(BitmapDrawable)getResources().getDrawable(R.drawable.bg_striped);
  bg.setTileModeXY(Shader.TileMode.REPEAT,Shader.TileMode.REPEAT);
  ActionBar actionBar=getActionBar();
  if (actionBar != null) {
    actionBar.setBackgroundDrawable(bg);
  }
  SharedPreferences sharedPreferences=PreferenceManager.getDefaultSharedPreferences(this);
  alarmSet=sharedPreferences.getBoolean("String_Node_Str",false);
  if (alarmSet) {
    setRecurringAlarm(sharedPreferences.getLong("String_Node_Str",30000));
  }
  mDrawerListItems=getResources().getStringArray(R.array.NavSections);
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  mDrawerList=(ListView)findViewById(R.id.left_drawer);
  mDrawerList.setAdapter(new ArrayAdapter<>(this,R.layout.drawer_list_item,mDrawerListItems));
  mDrawerList.setOnItemClickListener(new DrawerItemClickListener());
  app=new App(this);
  mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,R.drawable.ic_drawer,R.string.app_name,R.string.app_name){
    public void onDrawerClosed(    View view){
      invalidateOptionsMenu();
    }
    public void onDrawerOpened(    View drawerView){
      invalidateOptionsMenu();
    }
  }
;
  mDrawerLayout.setDrawerListener(mDrawerToggle);
  getActionBar().setDisplayHomeAsUpEnabled(true);
  getActionBar().setHomeButtonEnabled(true);
  if (savedInstanceState == null) {
    displayItem(0);
  }
}