Fixed a null reference that prevented access to the real error message when updating formats

This commit is contained in:
John Jenko 2016-03-22 15:02:49 +00:00
parent 5d8d79e32c
commit 7469ab179b

View File

@ -253,7 +253,7 @@ namespace VEPROMS.CSLA.Library
catch (Exception ex)
{
OnFormatLoaded(null, new FormatEventArgs("Error Loading Format " + format));
_MyLog.ErrorFormat("AddFormatToDB('{0}','{1}')", parent.Name, path);
_MyLog.ErrorFormat("AddFormatToDB('{0}','{1}')", (parent == null)?"Base": parent.Name, path);
return null;
}
}