From a06f624a4a20f43aebfd50c46a6d705af121116d Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Wed, 20 Oct 2021 15:03:15 +0900 Subject: [PATCH] Fix possible exception with "invalid" key Triggered by toggling Shift+Tab during gameplay. --- osu.Game/Localisation/ResourceManagerLocalisationStore.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osu.Game/Localisation/ResourceManagerLocalisationStore.cs b/osu.Game/Localisation/ResourceManagerLocalisationStore.cs index a35ce7a9c8..6a4e38fb38 100644 --- a/osu.Game/Localisation/ResourceManagerLocalisationStore.cs +++ b/osu.Game/Localisation/ResourceManagerLocalisationStore.cs @@ -29,6 +29,9 @@ namespace osu.Game.Localisation { var split = lookup.Split(':'); + if (split.Length < 2) + return null; + string ns = split[0]; string key = split[1];