[Top][All Lists]
[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 19:23:15 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 |
=================== BUG #6661: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=6661&group_id=353
Changes by: Rhys Weatherley <address@hidden>
Date: Thu 11/20/2003 at 00:23 (GMT)
What | Removed | Added
---------------------------------------------------------------------------
Resolution | None | Fixed
Status | Open | Closed
------------------ Additional Follow-up Comments ----------------------------
The patch was not quite correct (it was looking at the
wrong list level). I've implemented the correct fix in CVS.
=================== BUG #6661: FULL BUG SNAPSHOT ===================
Submitted by: t3rmin4t0r Project: DotGNU Portable.NET
Submitted on: Wed 11/19/2003 at 14:04
Category: None Severity: 5 - Major
Bug Group: None Resolution: Fixed
Assigned to: None Status: Closed
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;
Follow-up Comments
*******************
-------------------------------------------------------
Date: Thu 11/20/2003 at 00:23 By: rweather
The patch was not quite correct (it was looking at the
wrong list level). I've implemented the correct fix in CVS.
CC list is empty
File Attachments
****************
-------------------------------------------------------
Date: Wed 11/19/2003 at 14:04 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/