Skip to content

Commit

Permalink
Fix RakSessionCodec#onTick() null pointer issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lt-name authored and SupremeMortal committed Jan 28, 2025
1 parent 82d4f51 commit c018a7c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,10 @@ private void onTick() {
}
}
} finally {
getMetrics().queuedPacketBytes(queuedBytes);
RakChannelMetrics metrics = this.getMetrics();
if (metrics != null) {
metrics.queuedPacketBytes(queuedBytes);
}
}
}

Expand Down

0 comments on commit c018a7c

Please sign in to comment.