dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bug #6661] foreach on XmlNode.ChildNodes is giving Nu


From: nobody
Subject: [Pnet-developers] [bug #6661] foreach on XmlNode.ChildNodes is giving NullReferenceException
Date: Wed, 19 Nov 2003 09:04:17 -0500
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

=================== BUG #6661: FULL BUG SNAPSHOT ===================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=6661&group_id=353

Submitted by: t3rmin4t0r              Project: DotGNU Portable.NET          
Submitted on: Wed 11/19/2003 at 19:34
Category:  None                       Severity:  5 - Major                  
Bug Group:  None                      Resolution:  None                     
Assigned to:  None                    Status:  Open                         

Summary:  foreach on XmlNode.ChildNodes is giving NullReferenceException

Original Submission:  The attached test case is giving a NullReferenceException 
in System.Xml.NodeList:NodeListIterator . The following change seemed to make 
sense and fix the problem

--- /home/gopali/dotgnu/pnetlib/System.Xml/NodeList.cs  2003-03-05 
13:17:56.000000000 +0530
+++ NodeList.cs 2003-11-19 19:14:48.607427200 +0530
@@ -247,7 +247,7 @@
                                                        return true;
                                                }
                                        }
-                                       current = current.list.nextSibling;
+                                       current = list.nextSibling;
                                        if(current != null)
                                        {
                                                return true;



No Followups Have Been Posted


CC list is empty


File Attachments
****************

-------------------------------------------------------
Date: Wed 11/19/2003 at 19:34  Name: xmltest.cs  Size: 0KB   By: t3rmin4t0r
simple test case
http://savannah.gnu.org/bugs/download.php?group_id=353&bug_id=6661&bug_file_id=838


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=6661&group_id=353

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]