From 19276c7a32f5cbba927c2d0c48e03fb019d8e2f0 Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Mon, 12 Mar 2012 18:28:11 +0100 Subject: [PATCH] fixed handling of null strings in CLanguage.cs --- Vocaluxe/Base/CLanguage.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Vocaluxe/Base/CLanguage.cs b/Vocaluxe/Base/CLanguage.cs index cf118839..6b209bba 100644 --- a/Vocaluxe/Base/CLanguage.cs +++ b/Vocaluxe/Base/CLanguage.cs @@ -77,6 +77,9 @@ namespace Vocaluxe.Base public static string Translate(string KeyWord) { + if (KeyWord == null) + return null; + if (KeyWord.Length < 3) return KeyWord;