Fix: prevent accessing unavailable player in ugp regrouping
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Tue, 18 Feb 2025 21:13:14 +0000 (22:13 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Tue, 18 Feb 2025 21:13:14 +0000 (22:13 +0100)
music_assistant/providers/player_group/__init__.py

index dacb063309bbdbed1b0a97fe4779cd44abb0e615..eeb370deb6208ac5c7d62f212581baaf45fa98a9 100644 (file)
@@ -924,6 +924,8 @@ class PlayerGroupProvider(PlayerProvider):
         # Verify that no player is part of a separate group
         for child_player_id in player.group_childs:
             child_player = self.mass.players.get(child_player_id)
+            if child_player is None:
+                continue
             if PlayerFeature.SET_MEMBERS not in child_player.supported_features:
                 continue
             if child_player.group_childs: