1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-18 21:35:27 -04:00

datamapper supports null and DBNull

This commit is contained in:
kay.one
2013-06-14 08:20:18 -07:00
parent af1e05433a
commit 44ff12eaaa
+1 -1
View File
@@ -58,7 +58,7 @@ namespace Marr.Data.Mapping
dbValue = dataMap.Converter.FromDB(dataMap, dbValue); dbValue = dataMap.Converter.FromDB(dataMap, dbValue);
} }
if (dbValue != DBNull.Value) if (dbValue != DBNull.Value && dbValue != null)
{ {
dataMap.Setter(ent, dbValue); dataMap.Setter(ent, dbValue);
} }