B2017-164 & B2017-172 added a null reference check for Config information when trying to remove Enhanced Document information

This commit is contained in:
John Jenko 2017-08-11 14:31:28 +00:00
parent f714559e3b
commit 7b1a3d49c6

View File

@ -1645,6 +1645,7 @@ namespace VEPROMS.CSLA.Library
private static void RemoveEnhancedFromConfig(ItemInfo tmp)
{
XmlDocument xd = new XmlDocument();
if (tmp.MyContent.Config == null || tmp.MyContent.Config == "") return; // B2017-164 & B2017-172 check for null or empty config
xd.LoadXml(tmp.MyContent.Config);
XmlNode xn = xd.DocumentElement.SelectSingleNode("Enhanced");
if (xn != null)