Skip to content

Commit 936df70

Browse files
committed
fixed possible nre
1 parent 3d8c5d9 commit 936df70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Common Utilities/EventHandlers/PlayerHandlers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public List<ItemType> GetStartingInventory(RoleTypeId role, Player player = null
164164
player == null
165165
|| string.IsNullOrEmpty(x.Group)
166166
|| x.Group == "none"
167-
|| x.Group == player.Group.Name)
167+
|| x.Group == player.Group?.Name)
168168
.ToList();
169169

170170
Log.Debug($"{nameof(GetStartingInventory)} Finished checking groups, found {itemChances.Count} valid itemChances.");

0 commit comments

Comments
 (0)