System/PCL: Implement HttpWebRequest.SupportsCookieContainer, WebRequest.CreateHttp...
[mono.git] / mcs / class / System / System.Configuration / SettingsPropertyValue.cs
index 2d554cc7571ff2069d05c817a5c3db0d2c07ba76..9bf62c00c62a743e986ca0439c5bd075f5f7678f 100644 (file)
@@ -171,7 +171,7 @@ namespace System.Configuration
                private object GetDeserializedDefaultValue ()
                {
                        if (property.DefaultValue == null)
-                               if (property.PropertyType.IsValueType)
+                               if (property.PropertyType != null && property.PropertyType.IsValueType)
                                        return Activator.CreateInstance (property.PropertyType);
                                else
                                        return null;