Skip to content

Commit a834179

Browse files
ipkpjersiHubcapp
authored andcommitted
Fix NPE on channel on 2001
1 parent 0bfbb66 commit a834179

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • server/src/com/openrsc/server/model/entity/player

server/src/com/openrsc/server/model/entity/player/Player.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2453,7 +2453,7 @@ public void sendUpdates() {
24532453

24542454
public long processIncomingPackets() {
24552455
return getWorld().getServer().bench(() -> {
2456-
if (!channel.isOpen() && !channel.isWritable()) {
2456+
if (channel == null || (!channel.isOpen() && !channel.isWritable())) {
24572457
return;
24582458
}
24592459
synchronized (incomingPackets) {

0 commit comments

Comments
 (0)