From e429d19cb5e9a170dbd821222e2416d7ff3e9024 Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Thu, 1 May 2014 17:11:23 +0100 Subject: Fix XDT remove transforms failing on Mono. Source code fix: https://github.com/mrward/xdt/commit/b2c3b5383d589c3f79650a0cab93f88a8741b057 Running an xml transform using xdt:Transform='Remove' would fail on Mono with a null reference exception. The XmlElementContext TargetNode would be null in Mono resulting in a null reference when the name of the node was logged. This would only occur if the original xml node existed. Microsoft.Web.XmlTransform.XmlNodeException: Object reference not set to an instance of an object ---> System.NullReferenceException: Object reference not set to an instance of an object at Microsoft.Web.XmlTransform.Remove.RemoveNode () at Microsoft.Web.XmlTransform.Remove.Apply () at Microsoft.Web.XmlTransform.Transform.ApplyOnce () at Microsoft.Web.XmlTransform.Transform.Execute (Microsoft.Web.XmlTransform.XmlElementContext context, System.String argumentString) --- End of inner exception stack trace --- at Microsoft.Web.XmlTransform.XmlTransformationLogger.LogErrorFromException (System.Exception ex) at Microsoft.Web.XmlTransform.Transform.Execute (Microsoft.Web.XmlTransform.XmlElementContext context, System.String argumentString) at Microsoft.Web.XmlTransform.XmlTransformation.HandleElement (Microsoft.Web.XmlTransform.XmlElementContext context) --- Microsoft.Web.XmlTransform.dll | Bin 84480 -> 84480 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Microsoft.Web.XmlTransform.dll b/Microsoft.Web.XmlTransform.dll index e8f5894..af41f33 100644 Binary files a/Microsoft.Web.XmlTransform.dll and b/Microsoft.Web.XmlTransform.dll differ -- cgit v1.2.3