Program: 34147
Project: 34147
Buggy source:
@Override protected void onPostExecute(String[] userEmailArray){
  try {
    ArrayAdapter<String> dropdownListAdapter=new ArrayAdapter<String>(CamerasActivity.this,android.R.layout.simple_spinner_dropdown_item,userEmailArray);
    CamerasActivity.this.getActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
    OnNavigationListener navigationListener=new OnNavigationListener(){
      @Override public boolean onNavigationItemSelected(      int itemPosition,      long itemId){
        try {
          for (          AppUser user : AppData.appUsers) {
            user.setIsDefault(false);
          }
          DbAppUser dbUser=new DbAppUser(CamerasActivity.this);
          dbUser.updateAllIsDefaultFalse();
          AppUser user=AppData.appUsers.get(itemPosition);
          user.setIsDefault(true);
          dbUser.updateAppUser(user);
          AppData.defaultUser=user;
          AppData.evercamCameraList=new DbCamera(CamerasActivity.this).getCamerasByOwner(user.getUsername(),500);
          removeAllCameraViews();
          addAllCameraViews(true);
          new LoadCameraListTask(AppData.defaultUser,CamerasActivity.this).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
          if (totalCamerasInGrid == 0 && refresh != null) {
            refresh.setActionView(null);
            refresh.setActionView(R.layout.actionbar_indeterminate_progress);
          }
        }
 catch (        Exception e) {
          Log.e(TAG,e.getMessage(),e);
          if (Constants.isAppTrackingEnabled) {
            BugSenseHandler.sendException(e);
          }
        }
        return false;
      }
    }
;
    getActionBar().setListNavigationCallbacks(dropdownListAdapter,navigationListener);
    getActionBar().setSelectedNavigationItem(defaultUserIndex);
  }
 catch (  Exception e) {
    Log.e(TAG,e.getMessage(),e);
    if (Constants.isAppTrackingEnabled)     BugSenseHandler.sendException(e);
  }
}

Fixed version (ground truth):
@Override protected void onPostExecute(String[] userEmailArray){
  try {
    ArrayAdapter<String> dropdownListAdapter=new ArrayAdapter<String>(CamerasActivity.this,android.R.layout.simple_spinner_dropdown_item,userEmailArray);
    CamerasActivity.this.getActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
    OnNavigationListener navigationListener=new OnNavigationListener(){
      @Override public boolean onNavigationItemSelected(      int itemPosition,      long itemId){
        try {
          for (          AppUser user : AppData.appUsers) {
            user.setIsDefault(false);
          }
          DbAppUser dbUser=new DbAppUser(CamerasActivity.this);
          dbUser.updateAllIsDefaultFalse();
          AppUser user=AppData.appUsers.get(itemPosition);
          user.setIsDefault(true);
          dbUser.updateAppUser(user);
          AppData.defaultUser=user;
          AppData.evercamCameraList=new DbCamera(CamerasActivity.this).getCamerasByOwner(user.getUsername(),500);
          Log.d(TAG,"String_Node_Str" + AppData.evercamCameraList.size());
          removeAllCameraViews();
          addAllCameraViews(true);
          new LoadCameraListTask(AppData.defaultUser,CamerasActivity.this).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
          if (totalCamerasInGrid == 0 && refresh != null) {
            refresh.setActionView(null);
            refresh.setActionView(R.layout.actionbar_indeterminate_progress);
          }
        }
 catch (        Exception e) {
          Log.e(TAG,e.getMessage(),e);
          if (Constants.isAppTrackingEnabled) {
            BugSenseHandler.sendException(e);
          }
        }
        return false;
      }
    }
;
    getActionBar().setListNavigationCallbacks(dropdownListAdapter,navigationListener);
    getActionBar().setSelectedNavigationItem(defaultUserIndex);
  }
 catch (  Exception e) {
    Log.e(TAG,e.getMessage(),e);
    if (Constants.isAppTrackingEnabled)     BugSenseHandler.sendException(e);
  }
}