Program: 161594
Project: 161594
Buggy source:
private void sendNotification(Bundle extras){
  int chatRoomId=Integer.parseInt(extras.getString("String_Node_Str"));
  int memberId=Integer.parseInt(extras.getString("String_Node_Str"));
  int messageId=-1;
  if (extras.containsKey("String_Node_Str"))   messageId=Integer.parseInt(extras.getString("String_Node_Str"));
  Utils.logv("String_Node_Str" + chatRoomId + "String_Node_Str"+ memberId+ "String_Node_Str"+ messageId);
  ChatMember member=Utils.getSetting(this,Const.CHAT_MEMBER,ChatMember.class);
  ChatRoom chatRoom=ChatClient.getInstance(this).getChatRoom(chatRoomId);
  ChatMessageManager manager=new ChatMessageManager(this,chatRoom.getId());
  Cursor messages=manager.getNewMessages(this.getPrivateKeyFromSharedPrefs(),member,messageId);
  Intent intent=new Intent("String_Node_Str");
  intent.putExtras(extras);
  LocalBroadcastManager.getInstance(this).sendBroadcast(intent);
  if (ChatActivity.mCurrentOpenChatRoom != null && chatRoomId == ChatActivity.mCurrentOpenChatRoom.getId()) {
    return;
  }
  String txt=null;
  if (messages.moveToFirst()) {
    do {
      if (txt == null)       txt=messages.getString(3);
 else       txt+="String_Node_Str" + messages.getString(3);
    }
 while (messages.moveToNext());
  }
  Intent notificationIntent=new Intent(this,ChatActivity.class);
  notificationIntent.putExtra(Const.CURRENT_CHAT_ROOM,new Gson().toJson(chatRoom));
  if (Utils.getSettingBool(this,"String_Node_Str",true)) {
    PendingIntent contentIntent=PendingIntent.getActivity(this,0,notificationIntent,PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_ONE_SHOT);
    Uri sound=Uri.parse("String_Node_Str" + getPackageName() + "String_Node_Str"+ R.raw.message);
    String replyLabel=getResources().getString(R.string.reply_label);
    RemoteInput remoteInput=new RemoteInput.Builder(ChatActivity.EXTRA_VOICE_REPLY).setLabel(replyLabel).build();
    NotificationCompat.Action action=new NotificationCompat.Action.Builder(R.drawable.ic_reply,getString(R.string.reply_label),contentIntent).addRemoteInput(remoteInput).build();
    Notification notification=new NotificationCompat.Builder(this).setSmallIcon(R.drawable.tum_logo_notification).setContentTitle(chatRoom.getName().substring(4)).setStyle(new NotificationCompat.BigTextStyle().bigText(txt)).setContentText(txt).setContentIntent(contentIntent).setDefaults(Notification.DEFAULT_VIBRATE).setLights(0xff0000ff,500,500).setSound(sound).setAutoCancel(true).extend(new NotificationCompat.WearableExtender().addAction(action)).build();
    NotificationManager mNotificationManager=(NotificationManager)this.getSystemService(Context.NOTIFICATION_SERVICE);
    mNotificationManager.notify(chatRoomId << 4 + NOTIFICATION_ID,notification);
  }
}

Fixed version (ground truth):
private void sendNotification(Bundle extras){
  int chatRoomId=Integer.parseInt(extras.getString("String_Node_Str"));
  int memberId=Integer.parseInt(extras.getString("String_Node_Str"));
  int messageId=-1;
  if (extras.containsKey("String_Node_Str"))   messageId=Integer.parseInt(extras.getString("String_Node_Str"));
  Utils.logv("String_Node_Str" + chatRoomId + "String_Node_Str"+ memberId+ "String_Node_Str"+ messageId);
  ChatMember member=Utils.getSetting(this,Const.CHAT_MEMBER,ChatMember.class);
  ChatRoom chatRoom=ChatClient.getInstance(this).getChatRoom(chatRoomId);
  ChatMessageManager manager=new ChatMessageManager(this,chatRoom.getId());
  Cursor messages=manager.getNewMessages(this.getPrivateKeyFromSharedPrefs(),member,messageId);
  Intent intent=new Intent("String_Node_Str");
  intent.putExtras(extras);
  LocalBroadcastManager.getInstance(this).sendBroadcast(intent);
  if (ChatActivity.mCurrentOpenChatRoom != null && chatRoomId == ChatActivity.mCurrentOpenChatRoom.getId()) {
    return;
  }
  String txt=null;
  if (messages.moveToFirst()) {
    do {
      if (txt == null)       txt=messages.getString(3);
 else       txt+="String_Node_Str" + messages.getString(3);
    }
 while (messages.moveToNext());
  }
  Intent notificationIntent=new Intent(this,ChatActivity.class);
  notificationIntent.putExtra(Const.CURRENT_CHAT_ROOM,new Gson().toJson(chatRoom));
  if (Utils.getSettingBool(this,"String_Node_Str",true) && messageId == -1) {
    PendingIntent contentIntent=PendingIntent.getActivity(this,0,notificationIntent,PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_ONE_SHOT);
    Uri sound=Uri.parse("String_Node_Str" + getPackageName() + "String_Node_Str"+ R.raw.message);
    String replyLabel=getResources().getString(R.string.reply_label);
    RemoteInput remoteInput=new RemoteInput.Builder(ChatActivity.EXTRA_VOICE_REPLY).setLabel(replyLabel).build();
    NotificationCompat.Action action=new NotificationCompat.Action.Builder(R.drawable.ic_reply,getString(R.string.reply_label),contentIntent).addRemoteInput(remoteInput).build();
    Notification notification=new NotificationCompat.Builder(this).setSmallIcon(R.drawable.tum_logo_notification).setContentTitle(chatRoom.getName().substring(4)).setStyle(new NotificationCompat.BigTextStyle().bigText(txt)).setContentText(txt).setContentIntent(contentIntent).setDefaults(Notification.DEFAULT_VIBRATE).setLights(0xff0000ff,500,500).setSound(sound).setAutoCancel(true).extend(new NotificationCompat.WearableExtender().addAction(action)).build();
    NotificationManager mNotificationManager=(NotificationManager)this.getSystemService(Context.NOTIFICATION_SERVICE);
    mNotificationManager.notify(chatRoomId << 4 + NOTIFICATION_ID,notification);
  }
}