diff options
author | Matt Ward <ward.matt@gmail.com> | 2014-05-01 20:11:23 +0400 |
---|---|---|
committer | Matt Ward <ward.matt@gmail.com> | 2014-05-01 20:11:23 +0400 |
commit | e429d19cb5e9a170dbd821222e2416d7ff3e9024 (patch) | |
tree | 46ccdbacdb7cdc8d5022f708f27055c5b1e8faff | |
parent | 5b2cae8778d733df8685718650af0df52c232c79 (diff) |
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)
-rw-r--r-- | Microsoft.Web.XmlTransform.dll | bin | 84480 -> 84480 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/Microsoft.Web.XmlTransform.dll b/Microsoft.Web.XmlTransform.dll Binary files differindex e8f5894..af41f33 100644 --- a/Microsoft.Web.XmlTransform.dll +++ b/Microsoft.Web.XmlTransform.dll |