B2017-164 & B2017-172 added a null reference check for Config information when trying to remove Enhanced Document information
This commit is contained in:
parent
f714559e3b
commit
7b1a3d49c6
@ -1645,6 +1645,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
private static void RemoveEnhancedFromConfig(ItemInfo tmp)
|
private static void RemoveEnhancedFromConfig(ItemInfo tmp)
|
||||||
{
|
{
|
||||||
XmlDocument xd = new XmlDocument();
|
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);
|
xd.LoadXml(tmp.MyContent.Config);
|
||||||
XmlNode xn = xd.DocumentElement.SelectSingleNode("Enhanced");
|
XmlNode xn = xd.DocumentElement.SelectSingleNode("Enhanced");
|
||||||
if (xn != null)
|
if (xn != null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user