Program: 13892
Project: 13892
Buggy source:
private void rebuildAndUpdateNotificationsOnSystemBar(Context context,Bundle data){
  String noteType=StringUtils.notNullStr(data.getString(PUSH_ARG_TYPE));
  Bundle authPNBundle=sActiveNotificationsMap.remove(AUTH_PUSH_NOTIFICATION_ID);
  ;
  if (authPNBundle != null) {
    handlePushAuth(context,authPNBundle);
    if (sActiveNotificationsMap.size() > 0 && noteType.equals(PUSH_TYPE_PUSH_AUTH)) {
      data=sActiveNotificationsMap.values().iterator().next();
    }
 else     if (noteType.equals(PUSH_TYPE_PUSH_AUTH)) {
      sActiveNotificationsMap.put(AUTH_PUSH_NOTIFICATION_ID,authPNBundle);
      return;
    }
  }
  Bitmap largeIconBitmap=null;
  String title=getNotificationTitleOrAppNameFromBundle(context,data);
  String message=StringEscapeUtils.unescapeHtml(data.getString(PUSH_ARG_MSG));
  NotificationCompat.Builder builder=null;
  String wpcomNoteID=null;
  if (sActiveNotificationsMap.size() == 1) {
    Bundle remainingNote=sActiveNotificationsMap.values().iterator().next();
    if (remainingNote != null) {
      String remainingNoteTitle=StringEscapeUtils.unescapeHtml(remainingNote.getString(PUSH_ARG_TITLE));
      if (!TextUtils.isEmpty(remainingNoteTitle)) {
        title=remainingNoteTitle;
      }
      String remainingNoteMessage=StringEscapeUtils.unescapeHtml(remainingNote.getString(PUSH_ARG_MSG));
      if (!TextUtils.isEmpty(remainingNoteMessage)) {
        message=remainingNoteMessage;
      }
      largeIconBitmap=getLargeIconBitmap(context,remainingNote.getString("String_Node_Str"),shouldCircularizeNoteIcon(remainingNote.getString(PUSH_ARG_TYPE)));
      builder=getNotificationBuilder(context,title,message);
      long timeStampToShow=DateTimeUtils.timestampFromIso8601Millis(remainingNote.getString("String_Node_Str"));
      timeStampToShow=timeStampToShow != 0 ? timeStampToShow : remainingNote.getLong("String_Node_Str",System.currentTimeMillis());
      builder.setWhen(timeStampToShow);
      noteType=StringUtils.notNullStr(remainingNote.getString(PUSH_ARG_TYPE));
      wpcomNoteID=remainingNote.getString(PUSH_ARG_NOTE_ID,"String_Node_Str");
      if (!sActiveNotificationsMap.isEmpty()) {
        showSingleNotificationForBuilder(context,builder,noteType,wpcomNoteID,sActiveNotificationsMap.keyAt(0),false);
      }
    }
  }
  if (builder == null) {
    builder=getNotificationBuilder(context,title,message);
  }
  if (largeIconBitmap == null) {
    largeIconBitmap=getLargeIconBitmap(context,data.getString("String_Node_Str"),shouldCircularizeNoteIcon(PUSH_TYPE_BADGE_RESET));
  }
  if (wpcomNoteID == null) {
    wpcomNoteID=AppPrefs.getLastPushNotificationWpcomNoteId();
  }
  if (largeIconBitmap != null) {
    builder.setLargeIcon(largeIconBitmap);
  }
  showGroupNotificationForBuilder(context,builder,wpcomNoteID,message,false);
  if (authPNBundle != null) {
    sActiveNotificationsMap.put(AUTH_PUSH_NOTIFICATION_ID,authPNBundle);
  }
}

Fixed version (ground truth):
private void rebuildAndUpdateNotificationsOnSystemBar(Context context,Bundle data){
  String noteType=StringUtils.notNullStr(data.getString(PUSH_ARG_TYPE));
  Bundle authPNBundle=sActiveNotificationsMap.remove(AUTH_PUSH_NOTIFICATION_ID);
  ;
  if (authPNBundle != null) {
    handlePushAuth(context,authPNBundle);
    if (sActiveNotificationsMap.size() > 0 && noteType.equals(PUSH_TYPE_PUSH_AUTH)) {
      data=sActiveNotificationsMap.values().iterator().next();
    }
 else     if (noteType.equals(PUSH_TYPE_PUSH_AUTH)) {
      sActiveNotificationsMap.put(AUTH_PUSH_NOTIFICATION_ID,authPNBundle);
      return;
    }
  }
  Bitmap largeIconBitmap=null;
  String title=getNotificationTitleOrAppNameFromBundle(context,data);
  String message=StringEscapeUtils.unescapeHtml4(data.getString(PUSH_ARG_MSG));
  NotificationCompat.Builder builder=null;
  String wpcomNoteID=null;
  if (sActiveNotificationsMap.size() == 1) {
    Bundle remainingNote=sActiveNotificationsMap.values().iterator().next();
    if (remainingNote != null) {
      String remainingNoteTitle=StringEscapeUtils.unescapeHtml4(remainingNote.getString(PUSH_ARG_TITLE));
      if (!TextUtils.isEmpty(remainingNoteTitle)) {
        title=remainingNoteTitle;
      }
      String remainingNoteMessage=StringEscapeUtils.unescapeHtml4(remainingNote.getString(PUSH_ARG_MSG));
      if (!TextUtils.isEmpty(remainingNoteMessage)) {
        message=remainingNoteMessage;
      }
      largeIconBitmap=getLargeIconBitmap(context,remainingNote.getString("String_Node_Str"),shouldCircularizeNoteIcon(remainingNote.getString(PUSH_ARG_TYPE)));
      builder=getNotificationBuilder(context,title,message);
      long timeStampToShow=DateTimeUtils.timestampFromIso8601Millis(remainingNote.getString("String_Node_Str"));
      timeStampToShow=timeStampToShow != 0 ? timeStampToShow : remainingNote.getLong("String_Node_Str",System.currentTimeMillis());
      builder.setWhen(timeStampToShow);
      noteType=StringUtils.notNullStr(remainingNote.getString(PUSH_ARG_TYPE));
      wpcomNoteID=remainingNote.getString(PUSH_ARG_NOTE_ID,"String_Node_Str");
      if (!sActiveNotificationsMap.isEmpty()) {
        showSingleNotificationForBuilder(context,builder,noteType,wpcomNoteID,sActiveNotificationsMap.keyAt(0),false);
      }
    }
  }
  if (builder == null) {
    builder=getNotificationBuilder(context,title,message);
  }
  if (largeIconBitmap == null) {
    largeIconBitmap=getLargeIconBitmap(context,data.getString("String_Node_Str"),shouldCircularizeNoteIcon(PUSH_TYPE_BADGE_RESET));
  }
  if (wpcomNoteID == null) {
    wpcomNoteID=AppPrefs.getLastPushNotificationWpcomNoteId();
  }
  if (largeIconBitmap != null) {
    builder.setLargeIcon(largeIconBitmap);
  }
  showGroupNotificationForBuilder(context,builder,wpcomNoteID,message,false);
  if (authPNBundle != null) {
    sActiveNotificationsMap.put(AUTH_PUSH_NOTIFICATION_ID,authPNBundle);
  }
}