Handle the connection exception being null

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2021-09-16 07:50:12 +02:00
parent 3211831073
commit 13c05626e2

View File

@ -321,7 +321,7 @@ public final class PacketUtils {
}
// Handle single entry
if (singleEntry != null && !singleEntry.exception.equals(connection)) {
if (singleEntry != null && !Objects.equals(singleEntry.exception, connection)) {
writer.accept(singleEntry.buffer.position(0));
}
}