Skip to content

Commit

Permalink
Handle menu status event when no active player
Browse files Browse the repository at this point in the history
  • Loading branch information
kaaholst committed Oct 11, 2024
1 parent b267aca commit ac583b8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ public RandomPlay getRandomPlay(Player player) {

// For menu updates sent from LMS, handling of archived nodes needs testing!
void menuStatusEvent(MenuStatusMessage event) {
if (event.playerId.equals(getActivePlayer().getId())) {
Player activePlayer = getActivePlayer();
if (activePlayer != null && event.playerId.equals(activePlayer.getId())) {
mHomeMenuHandling.handleMenuStatusEvent(event);
}
}
Expand Down

0 comments on commit ac583b8

Please sign in to comment.