[Nmailserver-commits] SF.net SVN: nmailserver: [212] NMail/trunk/NMail
Brought to you by:
dframpton-oss,
tmyroadctfig
|
From: <tmy...@us...> - 2007-06-10 03:33:59
|
Revision: 212
http://svn.sourceforge.net/nmailserver/?rev=212&view=rev
Author: tmyroadctfig
Date: 2007-06-09 20:33:59 -0700 (Sat, 09 Jun 2007)
Log Message:
-----------
Fixed minor defect in type converters.
Modified Paths:
--------------
NMail/trunk/NMail/Configuration/ObjectConfigurationElement.cs
NMail/trunk/NMail/DataTypes/Host.cs
Modified: NMail/trunk/NMail/Configuration/ObjectConfigurationElement.cs
===================================================================
--- NMail/trunk/NMail/Configuration/ObjectConfigurationElement.cs 2007-06-10 03:32:48 UTC (rev 211)
+++ NMail/trunk/NMail/Configuration/ObjectConfigurationElement.cs 2007-06-10 03:33:59 UTC (rev 212)
@@ -95,7 +95,7 @@
}
public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) {
- if (destinationType == typeof(string)) {
+ if (value != null && destinationType == typeof(string)) {
Type t = (Type) value;
return string.Format("{0}, {1}", t.FullName, t.Assembly.GetName().Name);
Modified: NMail/trunk/NMail/DataTypes/Host.cs
===================================================================
--- NMail/trunk/NMail/DataTypes/Host.cs 2007-06-10 03:32:48 UTC (rev 211)
+++ NMail/trunk/NMail/DataTypes/Host.cs 2007-06-10 03:33:59 UTC (rev 212)
@@ -285,7 +285,7 @@
}
public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) {
- if (destinationType == typeof(string)) {
+ if (value != null && destinationType == typeof(string)) {
return value.ToString();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|