зеркало из https://github.com/mono/mail-archives.git
118 строки
4.2 KiB
HTML
118 строки
4.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-bugs] [Bug 39920][Nor] New - System.Xml is throwing an exception where .NET just returns null
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:bugzilla-daemon%40rocky.ximian.com">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
|
|
<LINK REL="Previous" HREF="004221.html">
|
|
<LINK REL="Next" HREF="004223.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-bugs] [Bug 39920][Nor] New - System.Xml is throwing an exception where .NET just returns null
|
|
</H1>
|
|
<B>bugzilla-daemon@rocky.ximian.com
|
|
</B>
|
|
<A HREF="mailto:bugzilla-daemon%40rocky.ximian.com"
|
|
TITLE="[Mono-bugs] [Bug 39920][Nor] New - System.Xml is throwing an exception where .NET just returns null">bugzilla-daemon@rocky.ximian.com
|
|
</A><BR>
|
|
<I>Tue, 18 Mar 2003 15:47:34 -0500 (EST)</I>
|
|
<P><UL>
|
|
<LI> Previous message: <A HREF="004221.html">[Mono-bugs] [Bug 39915][Nor] New - RemotingServices.Disconnect() and ContextBoundObject
|
|
</A></li>
|
|
<LI> Next message: <A HREF="004223.html">[Mono-bugs] [Bug 39920][Nor] Changed - System.Xml is throwing an exception where .NET just returns null
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#4222">[ date ]</a>
|
|
<a href="thread.html#4222">[ thread ]</a>
|
|
<a href="subject.html#4222">[ subject ]</a>
|
|
<a href="author.html#4222">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>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 <A HREF="mailto:synced_@hotmail.com.">synced_@hotmail.com.</A>
|
|
|
|
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=39920">http://bugzilla.ximian.com/show_bug.cgi?id=39920</A>
|
|
|
|
--- shadow/39920 Tue Mar 18 15:47:34 2003
|
|
+++ shadow/39920.tmp.31492 Tue Mar 18 15:47:34 2003
|
|
@@ -0,0 +1,54 @@
|
|
+Bug#: 39920
|
|
+Product: Mono/Class Libraries
|
|
+Version: unspecified
|
|
+OS: GNU/Linux [Other]
|
|
+OS Details:
|
|
+Status: NEW
|
|
+Resolution:
|
|
+Severity:
|
|
+Priority: Normal
|
|
+Component: System.Web
|
|
+AssignedTo: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
|
|
+ReportedBy: <A HREF="mailto:synced_@hotmail.com">synced_@hotmail.com</A>
|
|
+QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
|
|
+TargetMilestone: ---
|
|
+URL:
|
|
+Cc:
|
|
+Summary: System.Xml is throwing an exception where .NET just returns null
|
|
+
|
|
+Basically I'm in the process of porting a jabber library to mono and I've
|
|
+found a bug in System.Xml, I'm not exactly sure how to explain the
|
|
+problem but basically mono is throwing an exception instead of returning
|
|
+null, which is the desired result. .NET just returns a null XmlElement
|
|
+in this test case whereas mono throws an exception.
|
|
+
|
|
+XmlDocument doc = new XmlDocument();
|
|
+XmlElement tmpXML;
|
|
+
|
|
+doc.LoadXml("<iq id='JN_2' type='result' />");
|
|
+try
|
|
+{
|
|
+ tmpXML = (XmlElement)doc.GetElementsByTagName("query")[0];
|
|
+ if (tmpXML == null)
|
|
+ {
|
|
+ Console.WriteLine("This is the desired result.");
|
|
+ }
|
|
+}
|
|
+catch (Exception e)
|
|
+{
|
|
+ Console.WriteLine(e.Message + "\n\nThis is not the desired result.");
|
|
+}
|
|
+Console.ReadLine();
|
|
+
|
|
+Actual Results:
|
|
+Throws an exception
|
|
+Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out
|
|
+of range
|
|
+
|
|
+Expected Results:
|
|
+Return null. Tested on .NET, and it returns null.
|
|
+
|
|
+How often does this happen?
|
|
+Every time.
|
|
+
|
|
+Additional Information:
|
|
|
|
</PRE>
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI> Previous message: <A HREF="004221.html">[Mono-bugs] [Bug 39915][Nor] New - RemotingServices.Disconnect() and ContextBoundObject
|
|
</A></li>
|
|
<LI> Next message: <A HREF="004223.html">[Mono-bugs] [Bug 39920][Nor] Changed - System.Xml is throwing an exception where .NET just returns null
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#4222">[ date ]</a>
|
|
<a href="thread.html#4222">[ thread ]</a>
|
|
<a href="subject.html#4222">[ subject ]</a>
|
|
<a href="author.html#4222">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
</body></html>
|