Program: 34127
Project: 34127
Buggy source:
@Override public boolean onOptionsItemSelected(MenuItem item){
  try {
switch (item.getItemId()) {
case R.id.menurefresh:
      EvercamPlayApplication.sendEventAnalytics(this,R.string.category_menu,R.string.action_refresh,R.string.label_list_refresh);
    if (refresh != null)     refresh.setActionView(R.layout.actionbar_indeterminate_progress);
  LoadCameraListTask loadTask=new LoadCameraListTask(AppData.defaultUser,CamerasActivity.this);
loadTask.reload=true;
loadTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
return true;
case R.id.menu_add_camera:
showAddCameraOptionsDialog();
return true;
case R.id.menu_settings:
EvercamPlayApplication.sendEventAnalytics(this,R.string.category_menu,R.string.action_settings,R.string.label_settings);
startActivity(new Intent(CamerasActivity.this,CameraPrefsActivity.class));
return true;
case R.id.menu_manage_accounts:
EvercamPlayApplication.sendEventAnalytics(this,R.string.category_menu,R.string.action_manage_account,R.string.label_account);
startActivity(new Intent(CamerasActivity.this,ManageAccountsActivity.class));
isUsersAccountsActivityStarted=true;
return true;
case R.id.menu_about:
EvercamPlayApplication.sendEventAnalytics(this,R.string.category_menu,R.string.action_about,R.string.label_about);
startActivity(new Intent(CamerasActivity.this,AboutDialog.class));
return true;
case R.id.menu_logout:
showSignOutDialog();
return true;
default :
return super.onOptionsItemSelected(item);
}
}
 catch (Exception e) {
Log.e(TAG,e.toString(),e);
CustomedDialog.showUnexpectedErrorDialog(this);
if (Constants.isAppTrackingEnabled) BugSenseHandler.sendException(e);
}
return super.onOptionsItemSelected(item);
}

Fixed version (ground truth):
@Override public boolean onOptionsItemSelected(MenuItem item){
  try {
switch (item.getItemId()) {
case R.id.menurefresh:
      EvercamPlayApplication.sendEventAnalytics(this,R.string.category_menu,R.string.action_refresh,R.string.label_list_refresh);
    if (refresh != null)     refresh.setActionView(R.layout.actionbar_indeterminate_progress);
  LoadCameraListTask loadTask=new LoadCameraListTask(AppData.defaultUser,CamerasActivity.this);
loadTask.reload=true;
loadTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
return true;
case R.id.menu_add_camera:
showAddCameraOptionsDialog();
return true;
case R.id.menu_settings:
EvercamPlayApplication.sendEventAnalytics(this,R.string.category_menu,R.string.action_settings,R.string.label_settings);
startActivity(new Intent(CamerasActivity.this,CameraPrefsActivity.class));
return true;
case R.id.menu_manage_accounts:
EvercamPlayApplication.sendEventAnalytics(this,R.string.category_menu,R.string.action_manage_account,R.string.label_account);
startActivity(new Intent(CamerasActivity.this,ManageAccountsActivity.class));
isUsersAccountsActivityStarted=true;
stopImageLoading=true;
return true;
case R.id.menu_about:
EvercamPlayApplication.sendEventAnalytics(this,R.string.category_menu,R.string.action_about,R.string.label_about);
startActivity(new Intent(CamerasActivity.this,AboutDialog.class));
return true;
case R.id.menu_logout:
showSignOutDialog();
return true;
default :
return super.onOptionsItemSelected(item);
}
}
 catch (Exception e) {
Log.e(TAG,e.toString(),e);
CustomedDialog.showUnexpectedErrorDialog(this);
if (Constants.isAppTrackingEnabled) BugSenseHandler.sendException(e);
}
return super.onOptionsItemSelected(item);
}