Fixed nullables.

This commit is contained in:
Taloth Saldono
2015-10-03 21:19:25 +02:00
parent ccfa13e383
commit 0b219e1169
6 changed files with 15 additions and 15 deletions

View File

@@ -89,7 +89,7 @@ namespace NzbDrone.Api.ClientSchema
propertyInfo.SetValue(target, value, null);
}
else if (propertyInfo.PropertyType == typeof(Nullable<Int32>))
else if (propertyInfo.PropertyType == typeof(int?))
{
var value = field.Value.ToString().ParseInt32();
propertyInfo.SetValue(target, value, null);