mirror of
https://github.com/opensim/opensim.git
synced 2026-06-21 04:55:37 +08:00
Skip conversion if fields that are null in the database. This may
uncover errors elsewhere.
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user