Program: 174082
Project: 174082
Buggy source:
@Override public void onGuildMessageUpdate(GuildMessageUpdateEvent event){
  EmbedBuilder builder=new EmbedBuilder();
  Guild guild=event.getGuild();
  TextChannel tc=db.getServerlogChannel(guild);
  Message message=MessagesLogging.getMsg(event.getMessageIdLong());
  Message newmsg=event.getMessage();
  String title;
  TextChannel channel=FinderUtil.getDefaultChannel(event.getGuild());
  if (!(message.getContent().equals("String_Node_Str")) && !(tc == null) && !(event.getAuthor().isBot())) {
    if (!(tc.getGuild().getSelfMember().hasPermission(tc,Permission.MESSAGE_READ,Permission.MESSAGE_WRITE,Permission.MESSAGE_EMBED_LINKS,Permission.MESSAGE_HISTORY)))     guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue(null,(e) -> channel.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue()));
 else {
      title="String_Node_Str" + message.getAuthor().getName() + "String_Node_Str"+ message.getAuthor().getDiscriminator()+ "String_Node_Str"+ message.getTextChannel().getAsMention()+ "String_Node_Str";
      builder.setAuthor(message.getAuthor().getName(),null,message.getAuthor().getEffectiveAvatarUrl());
      builder.addField("String_Node_Str","String_Node_Str" + message.getContent() + "String_Node_Str",false);
      builder.addField("String_Node_Str","String_Node_Str" + newmsg.getContent() + "String_Node_Str",false);
      builder.setFooter("String_Node_Str" + message.getId(),null);
      builder.setColor(event.getGuild().getSelfMember().getColor());
      builder.setTimestamp(message.getCreationTime());
      tc.sendMessage(new MessageBuilder().append(title).setEmbed(builder.build()).build()).queue((m) -> {
        MessagesLogging.removeMessage(newmsg.getIdLong());
        MessagesLogging.addMessage(newmsg.getIdLong(),newmsg);
      }
);
    }
  }
 else {
    if (!(tc == null) && !(event.getAuthor().isBot())) {
      if (!(tc.getGuild().getSelfMember().hasPermission(tc,Permission.MESSAGE_READ,Permission.MESSAGE_WRITE,Permission.MESSAGE_EMBED_LINKS,Permission.MESSAGE_HISTORY)))       guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue(null,(e) -> tc.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue()));
 else {
        title="String_Node_Str";
        builder.addField("String_Node_Str","String_Node_Str",false);
        builder.addField("String_Node_Str","String_Node_Str" + newmsg.getContent() + "String_Node_Str",false);
        builder.setFooter("String_Node_Str" + event.getMessageId(),null);
        builder.setColor(event.getGuild().getSelfMember().getColor());
        tc.sendMessage(new MessageBuilder().append(title).setEmbed(builder.build()).build()).queue((m) -> {
          MessagesLogging.removeMessage(newmsg.getIdLong());
          MessagesLogging.addMessage(newmsg.getIdLong(),newmsg);
        }
);
      }
    }
  }
}

Fixed version (ground truth):
@Override public void onGuildMessageUpdate(GuildMessageUpdateEvent event){
  EmbedBuilder builder=new EmbedBuilder();
  Guild guild=event.getGuild();
  TextChannel tc=ldm.getServerlogChannel(guild);
  Message message=MessagesLogging.getMsg(event.getMessageIdLong());
  Message newmsg=event.getMessage();
  String title;
  TextChannel channel=FinderUtil.getDefaultChannel(event.getGuild());
  if (!(message.getContent().equals("String_Node_Str")) && !(tc == null) && !(event.getAuthor().isBot())) {
    if (!(tc.getGuild().getSelfMember().hasPermission(tc,Permission.MESSAGE_READ,Permission.MESSAGE_WRITE,Permission.MESSAGE_EMBED_LINKS,Permission.MESSAGE_HISTORY)))     guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue(null,(e) -> channel.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue()));
 else {
      title="String_Node_Str" + message.getAuthor().getName() + "String_Node_Str"+ message.getAuthor().getDiscriminator()+ "String_Node_Str"+ message.getTextChannel().getAsMention()+ "String_Node_Str";
      builder.setAuthor(message.getAuthor().getName(),null,message.getAuthor().getEffectiveAvatarUrl());
      builder.addField("String_Node_Str","String_Node_Str" + message.getContent() + "String_Node_Str",false);
      builder.addField("String_Node_Str","String_Node_Str" + newmsg.getContent() + "String_Node_Str",false);
      builder.setFooter("String_Node_Str" + message.getId(),null);
      builder.setColor(event.getGuild().getSelfMember().getColor());
      builder.setTimestamp(message.getCreationTime());
      tc.sendMessage(new MessageBuilder().append(title).setEmbed(builder.build()).build()).queue((m) -> {
        MessagesLogging.removeMessage(newmsg.getIdLong());
        MessagesLogging.addMessage(newmsg.getIdLong(),newmsg);
      }
);
    }
  }
 else {
    if (!(tc == null) && !(event.getAuthor().isBot())) {
      if (!(tc.getGuild().getSelfMember().hasPermission(tc,Permission.MESSAGE_READ,Permission.MESSAGE_WRITE,Permission.MESSAGE_EMBED_LINKS,Permission.MESSAGE_HISTORY)))       guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue(null,(e) -> tc.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue()));
 else {
        title="String_Node_Str";
        builder.addField("String_Node_Str","String_Node_Str",false);
        builder.addField("String_Node_Str","String_Node_Str" + newmsg.getContent() + "String_Node_Str",false);
        builder.setFooter("String_Node_Str" + event.getMessageId(),null);
        builder.setColor(event.getGuild().getSelfMember().getColor());
        tc.sendMessage(new MessageBuilder().append(title).setEmbed(builder.build()).build()).queue((m) -> {
          MessagesLogging.removeMessage(newmsg.getIdLong());
          MessagesLogging.addMessage(newmsg.getIdLong(),newmsg);
        }
);
      }
    }
  }
}