Skip to content

Commit

Permalink
fix: NPE in PW
Browse files Browse the repository at this point in the history
  • Loading branch information
Uhutown committed Oct 27, 2024
1 parent 1443e5c commit a439c8d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,8 @@ private void sendTrainNumberUpdates() {
buffer.putInt(trainNumberDisplays.size());
trainNumberDisplays.forEach(ident -> {
final SignalBoxNode node = grid.getNode(ident.point);
if (node == null)
return;
node.getPoint().writeNetwork(buffer);
node.writeNetwork(buffer);
});
Expand Down

0 comments on commit a439c8d

Please sign in to comment.