diff --git a/Src/Newtonsoft.Json/Converters/IsoDateTimeConverter.cs b/Src/Newtonsoft.Json/Converters/IsoDateTimeConverter.cs index 52490131..312a8595 100644 --- a/Src/Newtonsoft.Json/Converters/IsoDateTimeConverter.cs +++ b/Src/Newtonsoft.Json/Converters/IsoDateTimeConverter.cs @@ -126,7 +126,7 @@ namespace Newtonsoft.Json.Converters bool nullable = ReflectionUtils.IsNullableType(objectType); if (reader.TokenType == JsonToken.Null) { - if (!ReflectionUtils.IsNullableType(objectType)) + if (!nullable) { throw JsonSerializationException.Create(reader, "Cannot convert null value to {0}.".FormatWith(CultureInfo.InvariantCulture, objectType)); } @@ -194,4 +194,4 @@ namespace Newtonsoft.Json.Converters } } } -} \ No newline at end of file +}