Skip conversion if fields that are null in the database. This may

uncover errors elsewhere.
avinationmerge
Melanie Thielker 2010-08-19 12:01:40 +02:00
parent fb2deb0d45
commit 0344395776
1 changed files with 4 additions and 0 deletions

View File

@ -148,6 +148,10 @@ namespace OpenSim.Data.MySQL
foreach (string name in m_Fields.Keys)
{
if (reader[name] is DBNull)
{
continue;
}
if (m_Fields[name].FieldType == typeof(bool))
{
int v = Convert.ToInt32(reader[name]);