Skip conversion if fields that are null in the database. This may
uncover errors elsewhere.prebuild-update
parent
e47608fc62
commit
f58a809536
|
@ -148,6 +148,10 @@ namespace OpenSim.Data.MySQL
|
||||||
|
|
||||||
foreach (string name in m_Fields.Keys)
|
foreach (string name in m_Fields.Keys)
|
||||||
{
|
{
|
||||||
|
if (reader[name] is DBNull)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (m_Fields[name].FieldType == typeof(bool))
|
if (m_Fields[name].FieldType == typeof(bool))
|
||||||
{
|
{
|
||||||
int v = Convert.ToInt32(reader[name]);
|
int v = Convert.ToInt32(reader[name]);
|
||||||
|
|
Loading…
Reference in New Issue