From f6c7e3debbe6cdddd9654808f8690190a80622dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 28 Mar 2016 13:38:29 +0200 Subject: [PATCH] Don't try to lookup '' strings in chrome collections. --- OpenRA.Game/Graphics/ChromeProvider.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Game/Graphics/ChromeProvider.cs b/OpenRA.Game/Graphics/ChromeProvider.cs index 2d1e9a6335..47f57cacb1 100644 --- a/OpenRA.Game/Graphics/ChromeProvider.cs +++ b/OpenRA.Game/Graphics/ChromeProvider.cs @@ -88,6 +88,9 @@ namespace OpenRA.Graphics public static Sprite GetImage(string collectionName, string imageName) { + if (string.IsNullOrEmpty(collectionName)) + return null; + // Cached sprite Dictionary cachedCollection; Sprite sprite;