Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e429d19

Browse files
committed
Fix XDT remove transforms failing on Mono.
Source code fix: mrward/xdt@b2c3b53 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)
1 parent 5b2cae8 commit e429d19

File tree

1 file changed

+0
-0
lines changed

1 file changed

+0
-0
lines changed

Microsoft.Web.XmlTransform.dll

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)