* ProtocolImporter.cs : (ImportsEncodedNamespace) XmlSchemaExternal
could be of other types than XmlSchemaImport.
svn path=/branches/atsushi/mcs/; revision=69294
+2006-12-12 Atsushi Enomoto <atsushi@ximian.com>
+
+ * ProtocolImporter.cs : (ImportsEncodedNamespace) XmlSchemaExternal
+ could be of other types than XmlSchemaImport.
+
2006-12-04 Atsushi Enomoto <atsushi@ximian.com>
* SoapProtocolImporter.cs : added trivial IsSoapEncodingPresent().
foreach (XmlSchemaObject ob in sc.Includes)
{
XmlSchemaImport import = ob as XmlSchemaImport;
- if (import.Namespace == SoapProtocolReflector.EncodingNamespace) return true;
+ if (import != null && import.Namespace == SoapProtocolReflector.EncodingNamespace) return true;
}
return false;
}