bugDotGNU Portable.NET - Bugs: bug #6661, foreach on XmlNode.ChildNodes is...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #6661: foreach on XmlNode.ChildNodes is giving NullReferenceException

Submitted by:  Gopal.V <t3rmin4t0r>
Submitted on:  Wed 19 Nov 2003 02:04:14 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Thu 20 Nov 2003 12:23:14 AM UTC, comment #1:

The patch was not quite correct (it was looking at the
wrong list level). I've implemented the correct fix in CVS.

Rhys Weatherley <rweather>
Project Administrator
Wed 19 Nov 2003 02:04:14 PM UTC, 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;

Gopal.V <t3rmin4t0r>
Project Administrator

 

Attached Files
file #844:  xmltest.cs added by t3rmin4t0r (243B - application/octet-stream - simple test case)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 20 Nov 2003 12:23:14 AM UTCrweatherStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1