Browse Source

2008-12-18 Atsushi Enomoto <[email protected]>

	* BasicProfileChecker.cs : /definitions/message/part could omit
	  name attribute and it should not cause null key error.


svn path=/trunk/mcs/; revision=121828
Atsushi Eno 17 years ago
parent
commit
752b91ca2e

+ 2 - 0
mcs/class/System.Web.Services/System.Web.Services.Description/BasicProfileChecker.cs

@@ -418,6 +418,8 @@ namespace System.Web.Services.Description
 			ServiceDescription sd = value.PortType.ServiceDescription;
 			Message omitted = null;
 			foreach (OperationMessage m in value.Messages) {
+				if (m.Name == null)
+					continue; // it is doubtful, but R2305 is not to check such cases anyways.
 				Message msg = sd.Messages [m.Name];
 				if (msg == null)
 					continue; // it is doubtful, but R2305 is not to check such cases anyways.

+ 5 - 0
mcs/class/System.Web.Services/System.Web.Services.Description/ChangeLog

@@ -1,3 +1,8 @@
+2008-12-18  Atsushi Enomoto  <[email protected]>
+
+	* BasicProfileChecker.cs : /definitions/message/part could omit
+	  name attribute and it should not cause null key error.
+
 2008-12-09  Atsushi Enomoto  <[email protected]>
 
 	* BasicProfileChecker.cs : reimplemented R2305 that turned out to