Program: 153166
Project: 153166
Buggy source:
private void checkUpdate(Map<String,String> codesVersionMap){
  if (0 == codesVersionMap.size()) {
    return;
  }
  AppListParser appListParser=new AppListParser();
  String reqStr=UrlHelpers.getUpdateRequestString(codesVersionMap);
  try {
    String token=TokenWrapper.getToken(mContext);
    String url=UrlHelpers.getUpdateUrl(token);
    ArrayList<AppInfo> appList=appListParser.getUpdateList(url,reqStr,codesVersionMap.size());
    Log.i(TAG,"String_Node_Str" + Integer.toString(appList.size()));
    ContentValues cv=new ContentValues();
    for (int i=0; i < appList.size(); ++i) {
      AppInfo appInfo=appList.get(i);
      cv.put(InstalledAppDb.COLUMN_STATE,PackageState.need_update.name());
      cv.put(InstalledAppDb.COLUMN_AUTHOR,appInfo.mAppAuthor);
      cv.put(InstalledAppDb.COLUMN_DESC,appInfo.mAppShortDesc);
      cv.put(InstalledAppDb.COLUMN_VERSION,appInfo.mAppVersion);
      cv.put(InstalledAppDb.COLUMN_IMAGE_URL,appInfo.mAppImageUrl);
      cv.put(InstalledAppDb.COLUMN_APP_NAME,appInfo.mAppName);
      String where=InstalledAppDb.COLUMN_CODE + "String_Node_Str";
      String[] selectionArgs={appInfo.mAppCode};
      mContext.getContentResolver().update(BehooProvider.INSTALLED_APP_CONTENT_URI,cv,where,selectionArgs);
    }
    Intent intent=new Intent(Constants.ACTION_PKG_UPDATE_FINISHED);
    intent.putExtra(Constants.EXTRA_SIZE,appList.size());
    mContext.sendBroadcast(intent);
  }
 catch (  Throwable tr) {
    tr.printStackTrace();
  }
 finally {
    appListParser.cancel();
  }
}

Fixed version (ground truth):
private void checkUpdate(Map<String,String> codesVersionMap){
  if (0 == codesVersionMap.size()) {
    return;
  }
  AppListParser appListParser=new AppListParser();
  String reqStr=UrlHelpers.getUpdateRequestString(codesVersionMap);
  Log.d(TAG,"String_Node_Str" + reqStr);
  try {
    String token=TokenWrapper.getToken(mContext);
    String url=UrlHelpers.getUpdateUrl(token);
    Log.d(TAG,"String_Node_Str" + url);
    ArrayList<AppInfo> appList=appListParser.getUpdateList(url,reqStr,codesVersionMap.size());
    Log.i(TAG,"String_Node_Str" + Integer.toString(appList.size()));
    ContentValues cv=new ContentValues();
    for (int i=0; i < appList.size(); ++i) {
      AppInfo appInfo=appList.get(i);
      cv.put(InstalledAppDb.COLUMN_STATE,PackageState.need_update.name());
      cv.put(InstalledAppDb.COLUMN_AUTHOR,appInfo.mAppAuthor);
      cv.put(InstalledAppDb.COLUMN_DESC,appInfo.mAppShortDesc);
      cv.put(InstalledAppDb.COLUMN_VERSION,appInfo.mAppVersion);
      cv.put(InstalledAppDb.COLUMN_IMAGE_URL,appInfo.mAppImageUrl);
      cv.put(InstalledAppDb.COLUMN_APP_NAME,appInfo.mAppName);
      String where=InstalledAppDb.COLUMN_CODE + "String_Node_Str";
      String[] selectionArgs={appInfo.mAppCode};
      mContext.getContentResolver().update(BehooProvider.INSTALLED_APP_CONTENT_URI,cv,where,selectionArgs);
    }
    Intent intent=new Intent(Constants.ACTION_PKG_UPDATE_FINISHED);
    intent.putExtra(Constants.EXTRA_SIZE,appList.size());
    mContext.sendBroadcast(intent);
  }
 catch (  Throwable tr) {
    tr.printStackTrace();
  }
 finally {
    appListParser.cancel();
  }
}