Program: 174088
Project: 174088
Buggy source:
@Override public void onGuildMessageDelete(GuildMessageDeleteEvent event){
  EmbedBuilder builder=new EmbedBuilder();
  Guild guild=event.getGuild();
  TextChannel tc=db.getServerlogChannel(guild);
  Message message=MessagesLogging.getMsg(event.getMessageIdLong());
  String title;
  TextChannel channel=FinderUtil.getDefaultChannel(event.getGuild());
  if (!(message.getContent().equals("String_Node_Str")) && !(tc == null) && !(message.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.setDescription("String_Node_Str" + message.getContent() + "String_Node_Str");
      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(message.getIdLong()));
    }
  }
 else {
    if (!(tc == null) && !(message.getAuthor() == null)) {
      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.setDescription("String_Node_Str");
        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(message.getIdLong()));
      }
    }
  }
}

Fixed version (ground truth):
@Override public void onGuildMessageDelete(GuildMessageDeleteEvent event){
  EmbedBuilder builder=new EmbedBuilder();
  Guild guild=event.getGuild();
  TextChannel tc=ldm.getServerlogChannel(guild);
  Message message=MessagesLogging.getMsg(event.getMessageIdLong());
  String title;
  TextChannel channel=FinderUtil.getDefaultChannel(event.getGuild());
  if (!(message.getContent().equals("String_Node_Str")) && !(tc == null) && !(message.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.setDescription("String_Node_Str" + message.getContent() + "String_Node_Str");
      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(message.getIdLong()));
    }
  }
 else {
    if (!(tc == null) && !(message.getAuthor() == null)) {
      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.setDescription("String_Node_Str");
        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(message.getIdLong()));
      }
    }
  }
}