From df65e846d7f87d10dd7defa3c121fdb9d88fd0ec Mon Sep 17 00:00:00 2001 From: RKrom Date: Mon, 2 Apr 2012 14:04:08 +0000 Subject: [PATCH] Preventing another Exception in the logs... git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1739 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- GreenshotPlugin/Core/LanguageHelper.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GreenshotPlugin/Core/LanguageHelper.cs b/GreenshotPlugin/Core/LanguageHelper.cs index 077f406b1..752dc478b 100644 --- a/GreenshotPlugin/Core/LanguageHelper.cs +++ b/GreenshotPlugin/Core/LanguageHelper.cs @@ -258,6 +258,10 @@ namespace GreenshotPlugin.Core { } languageDirectories.Add(STARTUP_LANGUAGE_PATH); foreach(string path in languageDirectories) { + if (!Directory.Exists(path)) { + LOG.InfoFormat("Skipping non existing language path {0}", path); + continue; + } // Search in executable directory LOG.InfoFormat("Searching language directory '{0}' for language files with pattern '{1}'", path, languageFilePattern); try {