Prevent crashing when directory is moved

This commit is contained in:
Assistant 2019-05-30 13:22:11 -04:00
parent 67a8254d4c
commit dbf4df2b03

View file

@ -93,7 +93,7 @@ namespace ModAssistant
string InstallDir = null;
InstallDir = Properties.Settings.Default.InstallFolder;
if (!String.IsNullOrEmpty(InstallDir))
if (!String.IsNullOrEmpty(InstallDir) && Directory.Exists(InstallDir))
{
return InstallDir;
}