[Mono-bugs] [Bug 55876][Nor] New - NullReferenceException on Xsl Transform

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 21 Mar 2004 13:23:39 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gert.driesen@pandora.be.

http://bugzilla.ximian.com/show_bug.cgi?id=55876

--- shadow/55876	2004-03-21 13:23:39.000000000 -0500
+++ shadow/55876.tmp.28851	2004-03-21 13:23:39.000000000 -0500
@@ -0,0 +1,124 @@
+Bug#: 55876
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gert.driesen@pandora.be               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: NullReferenceException on Xsl Transform
+
+When running the attached app on Mono, I get the following exception :
+
+Unhandled Exception: System.Xml.XPath.XPathException: Error during
+evaluation ---> System.NullReferenceException: A null value was found where
+an object instance was required.
+in <0x0010e> System.Xml.XPath.Expression:GetReturnType (object)
+in <0x000d3> System.Xml.XPath.EqualityExpr:EvaluateBoolean
+(System.Xml.XPath.BaseIterator)
+in <0x00172> System.Xml.XPath.PredicateIterator:MoveNext ()
+in <0x00031> System.Xml.XPath.XPathNodeIterator:get_Count ()
+in <0x0001f> System.Xml.XPath.XPathFunctionCount:Evaluate
+(System.Xml.XPath.BaseIterator)in <0x0005a>
+System.Xml.XPath.Expression:EvaluateNumber (System.Xml.XPath.BaseIterator)
+in <0x004a1> System.Xml.XPath.RelationalExpr:EvaluateBoolean
+(System.Xml.XPath.BaseIterator)
+in <0x00029> System.Xml.XPath.CompiledExpression:EvaluateBoolean
+(System.Xml.XPath.BaseIterator)
+--- End of inner exception stack trace ---
+ 
+in <0x0009b> System.Xml.XPath.CompiledExpression:EvaluateBoolean
+(System.Xml.XPath.BaseIterator)
+in <0x000e2> System.Xml.XPath.XPathNavigator:EvaluateBoolean
+(System.Xml.XPath.XPathExpression,System.Xml.XPath.XPathNodeIterator,System.Xml.XmlNamespaceManager)
+in <0x0008f> Mono.Xml.Xsl.XslTransformProcessor:EvaluateBoolean
+(System.Xml.XPath.XPathExpression)
+in <0x00025> Mono.Xml.Xsl.Operations.XslIf:EvaluateIfTrue
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x00012> Mono.Xml.Xsl.Operations.XslIf:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x00087> Mono.Xml.Xsl.Operations.XslTemplateContent:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x001ac> Mono.Xml.Xsl.XslTemplate:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor,System.Collections.Hashtable)
+in <0x00066> Mono.Xml.Xsl.XslTransformProcessor:CallTemplate
+(System.Xml.XmlQualifiedName,System.Collections.ArrayList)
+in <0x0001a> Mono.Xml.Xsl.Operations.XslCallTemplate:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x00087> Mono.Xml.Xsl.Operations.XslTemplateContent:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x00048> Mono.Xml.Xsl.Operations.XslIf:EvaluateIfTrue
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x00012> Mono.Xml.Xsl.Operations.XslIf:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x00087> Mono.Xml.Xsl.Operations.XslTemplateContent:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x001ac> Mono.Xml.Xsl.XslTemplate:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor,System.Collections.Hashtable)
+in <0x00066> Mono.Xml.Xsl.XslTransformProcessor:CallTemplate
+(System.Xml.XmlQualifiedName,System.Collections.ArrayList)
+in <0x0001a> Mono.Xml.Xsl.Operations.XslCallTemplate:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x00087> Mono.Xml.Xsl.Operations.XslTemplateContent:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x00434> Mono.Xml.Xsl.Operations.XslLiteralElement:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x00087> Mono.Xml.Xsl.Operations.XslTemplateContent:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x00048> Mono.Xml.Xsl.Operations.XslIf:EvaluateIfTrue
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x00012> Mono.Xml.Xsl.Operations.XslIf:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x00087> Mono.Xml.Xsl.Operations.XslTemplateContent:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x00434> Mono.Xml.Xsl.Operations.XslLiteralElement:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x00087> Mono.Xml.Xsl.Operations.XslTemplateContent:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x00434> Mono.Xml.Xsl.Operations.XslLiteralElement:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x00087> Mono.Xml.Xsl.Operations.XslTemplateContent:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x00434> Mono.Xml.Xsl.Operations.XslLiteralElement:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x00087> Mono.Xml.Xsl.Operations.XslTemplateContent:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x001ac> Mono.Xml.Xsl.XslTemplate:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor,System.Collections.Hashtable)
+in <0x00066> Mono.Xml.Xsl.XslTransformProcessor:CallTemplate
+(System.Xml.XmlQualifiedName,System.Collections.ArrayList)
+in <0x0001a> Mono.Xml.Xsl.Operations.XslCallTemplate:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x00087> Mono.Xml.Xsl.Operations.XslTemplateContent:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x001ac> Mono.Xml.Xsl.XslTemplate:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor,System.Collections.Hashtable)
+in <0x00091> Mono.Xml.Xsl.XslTransformProcessor:ApplyTemplates
+(System.Xml.XPath.XPathNodeIterator,System.Xml.XmlQualifiedName,System.Collections.ArrayList)
+in <0x00088> Mono.Xml.Xsl.Operations.XslApplyTemplates:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x00087> Mono.Xml.Xsl.Operations.XslTemplateContent:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in <0x001ac> Mono.Xml.Xsl.XslTemplate:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor,System.Collections.Hashtable)
+in <0x00091> Mono.Xml.Xsl.XslTransformProcessor:ApplyTemplates
+(System.Xml.XPath.XPathNodeIterator,System.Xml.XmlQualifiedName,System.Collections.ArrayList)
+in <0x005d3> Mono.Xml.Xsl.XslTransformProcessor:Process
+(System.Xml.XPath.XPathNavigator,Mono.Xml.Xsl.Outputter,System.Xml.Xsl.XsltArgumentList,System.Xml.XmlResolver)
+in <0x000a6> System.Xml.Xsl.ManagedXslTransform:Transform
+(System.Xml.XPath.XPathNavigator,System.Xml.Xsl.XsltArgumentList,System.IO.TextWriter,System.Xml.XmlResolver)
+in <0x0001a> System.Xml.Xsl.XslTransform:Transform
+(System.Xml.XPath.XPathNavigator,System.Xml.Xsl.XsltArgumentList,System.IO.TextWriter,System.Xml.XmlResolver)
+in <0x0003d> System.Xml.Xsl.XslTransform:Transform
+(System.Xml.XPath.IXPathNavigable,System.Xml.Xsl.XsltArgumentList,System.IO.TextWriter)
+in <0x001e4> XsltTest.EntryPoint:Main ()
+
+repro is attached