diff --git a/OpenRA.Mods.RA/Widgets/Logic/LobbyLogic.cs b/OpenRA.Mods.RA/Widgets/Logic/LobbyLogic.cs index 89a60acf7c..aefc4e1ba0 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/LobbyLogic.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/LobbyLogic.cs @@ -159,12 +159,12 @@ namespace OpenRA.Mods.RA.Widgets.Logic var difficulty = lobby.Get("DIFFICULTY_DROPDOWNBUTTON"); difficulty.IsVisible = () => Map != null && Map.Difficulties != null && Map.Difficulties.Any(); difficulty.IsDisabled = () => !Game.IsHost || gameStarting || orderManager.LocalClient == null || orderManager.LocalClient.IsReady; - difficulty.GetText = () => orderManager.LobbyInfo.GlobalSettings.Difficulty; + difficulty.GetText = () => orderManager.LobbyInfo.GlobalSettings.Difficulty ?? ""; difficulty.OnMouseDown = _ => { var options = Map.Difficulties.Select(d => new DifficultyDropDownOption { - Title = d, + Title = d ?? "", IsSelected = () => orderManager.LobbyInfo.GlobalSettings.Difficulty == d, OnClick = () => orderManager.IssueOrder(Order.Command("difficulty {0}".F(d))) });