Program: 13734
Project: 13734
Buggy source:
void updateNotificationError(@NonNull PostModel post,@NonNull SiteModel site,String errorMessage){
  AppLog.d(AppLog.T.POSTS,"String_Node_Str" + errorMessage);
  NotificationCompat.Builder notificationBuilder=new NotificationCompat.Builder(mContext.getApplicationContext());
  long notificationId=getNotificationIdForPost(post);
  Intent notificationIntent=new Intent(mContext,PostsListActivity.class);
  notificationIntent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
  notificationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  notificationIntent.putExtra(WordPress.SITE,site);
  notificationIntent.putExtra(PostsListActivity.EXTRA_VIEW_PAGES,post.isPage());
  notificationIntent.putExtra(PostsListActivity.EXTRA_TARGET_POST_LOCAL_ID,post.getId());
  notificationIntent.setAction(String.valueOf(notificationId));
  PendingIntent pendingIntent=PendingIntent.getActivity(mContext,(int)notificationId,notificationIntent,PendingIntent.FLAG_ONE_SHOT);
  notificationBuilder.setSmallIcon(R.drawable.ic_my_sites_24dp);
  notificationBuilder.setColor(mContext.getResources().getColor(R.color.blue_wordpress));
  String postTitle=TextUtils.isEmpty(post.getTitle()) ? mContext.getString(R.string.untitled) : post.getTitle();
  String notificationTitle=String.format(mContext.getString(R.string.upload_failed_param),postTitle);
  String newErrorMessage="String_Node_Str";
  int postItemsNotUploaded=sNotificationData.totalPostItems - sNotificationData.currentPostItem;
  int mediaItemsNotUploaded=sNotificationData.totalMediaItems - sNotificationData.currentMediaItem;
  if (postItemsNotUploaded > 0) {
    newErrorMessage+=postItemsNotUploaded + "String_Node_Str" + getPagesAndOrPostsString();
    if (mediaItemsNotUploaded > 0) {
      newErrorMessage+="String_Node_Str";
    }
  }
  if (mediaItemsNotUploaded > 0) {
    newErrorMessage+=String.format(mContext.getString(R.string.media_files_not_uploaded),mediaItemsNotUploaded);
    if (mediaItemsNotUploaded < sNotificationData.currentMediaItem) {
      newErrorMessage+="String_Node_Str" + String.format(mContext.getString(R.string.media_files_uploaded_succcessfully),(sNotificationData.currentMediaItem - mediaItemsNotUploaded));
    }
  }
  if (newErrorMessage.length() > 0) {
    newErrorMessage+="String_Node_Str" + errorMessage;
  }
 else {
    newErrorMessage=errorMessage;
  }
  notificationBuilder.setContentTitle(notificationTitle);
  notificationBuilder.setContentText(newErrorMessage);
  notificationBuilder.setStyle(new NotificationCompat.BigTextStyle().bigText(errorMessage));
  notificationBuilder.setContentIntent(pendingIntent);
  notificationBuilder.setAutoCancel(true);
  doNotify(notificationId,notificationBuilder.build());
}

Fixed version (ground truth):
void updateNotificationError(@NonNull PostModel post,@NonNull SiteModel site,String errorMessage){
  AppLog.d(AppLog.T.POSTS,"String_Node_Str" + errorMessage);
  NotificationCompat.Builder notificationBuilder=new NotificationCompat.Builder(mContext.getApplicationContext());
  long notificationId=getNotificationIdForPost(post);
  Intent notificationIntent=new Intent(mContext,PostsListActivity.class);
  notificationIntent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
  notificationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  notificationIntent.putExtra(WordPress.SITE,site);
  notificationIntent.putExtra(PostsListActivity.EXTRA_VIEW_PAGES,post.isPage());
  notificationIntent.putExtra(PostsListActivity.EXTRA_TARGET_POST_LOCAL_ID,post.getId());
  notificationIntent.setAction(String.valueOf(notificationId));
  PendingIntent pendingIntent=PendingIntent.getActivity(mContext,(int)notificationId,notificationIntent,PendingIntent.FLAG_ONE_SHOT);
  notificationBuilder.setSmallIcon(R.drawable.ic_my_sites_24dp);
  notificationBuilder.setColor(mContext.getResources().getColor(R.color.blue_wordpress));
  String postTitle=TextUtils.isEmpty(post.getTitle()) ? mContext.getString(R.string.untitled) : post.getTitle();
  String notificationTitle=String.format(mContext.getString(R.string.upload_failed_param),postTitle);
  String newErrorMessage="String_Node_Str";
  int postItemsNotUploaded=sNotificationData.totalPostItems > 0 ? sNotificationData.totalPostItems - (sNotificationData.currentPostItem - 1) : 0;
  int mediaItemsNotUploaded=sNotificationData.totalMediaItems - sNotificationData.currentMediaItem;
  if (postItemsNotUploaded > 0) {
    newErrorMessage+=postItemsNotUploaded + "String_Node_Str" + getPagesAndOrPostsString();
    if (mediaItemsNotUploaded > 0) {
      newErrorMessage+="String_Node_Str";
    }
  }
  if (mediaItemsNotUploaded > 0) {
    newErrorMessage+=String.format(mContext.getString(R.string.media_files_not_uploaded),mediaItemsNotUploaded);
    if (mediaItemsNotUploaded < sNotificationData.currentMediaItem) {
      newErrorMessage+="String_Node_Str" + String.format(mContext.getString(R.string.media_files_uploaded_succcessfully),(sNotificationData.currentMediaItem - mediaItemsNotUploaded));
    }
  }
  if (newErrorMessage.length() > 0) {
    newErrorMessage+="String_Node_Str" + errorMessage;
  }
 else {
    newErrorMessage=errorMessage;
  }
  notificationBuilder.setContentTitle(notificationTitle);
  notificationBuilder.setContentText(newErrorMessage);
  notificationBuilder.setStyle(new NotificationCompat.BigTextStyle().bigText(newErrorMessage));
  notificationBuilder.setContentIntent(pendingIntent);
  notificationBuilder.setAutoCancel(true);
  doNotify(notificationId,notificationBuilder.build());
}