Update of /cvsroot/mvp-xml/Common/v1/src/XPath
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11619/v1/src/XPath
Modified Files:
XPathCache.cs
Log Message:
Fixed bug that caused a NullReferenceException for an overload to Select.
Index: XPathCache.cs
===================================================================
RCS file: /cvsroot/mvp-xml/Common/v1/src/XPath/XPathCache.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- XPathCache.cs 27 Sep 2004 16:27:12 -0000 1.1
+++ XPathCache.cs 19 Oct 2004 07:15:07 -0000 1.2
@@ -65,7 +65,11 @@
// If we have variables, we need the dynamic context.
if (variables != null)
{
- DynamicContext dyn = new DynamicContext(ctx);
+ DynamicContext dyn;
+ if (ctx != null)
+ dyn = new DynamicContext(ctx);
+ else
+ dyn = new DynamicContext();
// Add the variables we received.
foreach (XPathVariable var in variables)
|