From 7469ab179b6fc478847cc601823373ca502e0daf Mon Sep 17 00:00:00 2001 From: John Date: Tue, 22 Mar 2016 15:02:49 +0000 Subject: [PATCH] Fixed a null reference that prevented access to the real error message when updating formats --- PROMS/VEPROMS.CSLA.Library/Extension/FormatExt.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/FormatExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/FormatExt.cs index 51ccd203..5c0cf0a1 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/FormatExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/FormatExt.cs @@ -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; } }