diff --git a/Content.Client/UserInterface/Systems/Actions/ActionUIController.cs b/Content.Client/UserInterface/Systems/Actions/ActionUIController.cs index b0fa714ce6..52b6c64b36 100644 --- a/Content.Client/UserInterface/Systems/Actions/ActionUIController.cs +++ b/Content.Client/UserInterface/Systems/Actions/ActionUIController.cs @@ -39,9 +39,9 @@ public sealed class ActionUIController : UIController, IOnStateChanged action.Enabled, - Filters.Item => action.Provider != null && action.Provider != _actionsSystem.PlayerActions?.Owner, - Filters.Innate => action.Provider == null || action.Provider == _actionsSystem.PlayerActions?.Owner, + Filters.Item => action.Provider != null && action.Provider != _actionsSystem?.PlayerActions?.Owner, + Filters.Innate => action.Provider == null || action.Provider == _actionsSystem?.PlayerActions?.Owner, Filters.Instant => action is InstantAction, Filters.Targeted => action is TargetedAction, _ => throw new ArgumentOutOfRangeException(nameof(filter), filter, null) @@ -326,7 +409,7 @@ public sealed class ActionUIController : UIController, IOnStateChanged? actions = _actionsSystem.PlayerActions?.Actions; + IEnumerable? actions = _actionsSystem?.PlayerActions?.Actions; actions ??= Array.Empty(); if (filters.Count == 0 && string.IsNullOrWhiteSpace(search)) @@ -346,7 +429,7 @@ public sealed class ActionUIController : UIController, IOnStateChanged(action.Provider.Value).EntityName; @@ -477,7 +560,7 @@ public sealed class ActionUIController : UIController, IOnStateChanged @@ -701,8 +784,8 @@ public sealed class ActionUIController : UIController, IOnStateChanged(out var handOverlay) || handOverlay == null) return;