diff options
-rw-r--r-- | OpenSim/Data/MySQL/MySQLRegionData.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Data/MySQL/MySQLRegionData.cs b/OpenSim/Data/MySQL/MySQLRegionData.cs index 3b561d1..f514076 100644 --- a/OpenSim/Data/MySQL/MySQLRegionData.cs +++ b/OpenSim/Data/MySQL/MySQLRegionData.cs | |||
@@ -151,7 +151,10 @@ namespace OpenSim.Data.MySQL | |||
151 | 151 | ||
152 | DataTable schemaTable = result.GetSchemaTable(); | 152 | DataTable schemaTable = result.GetSchemaTable(); |
153 | foreach (DataRow row in schemaTable.Rows) | 153 | foreach (DataRow row in schemaTable.Rows) |
154 | m_ColumnNames.Add(row["ColumnName"].ToString()); | 154 | { |
155 | if (row["ColumnName"] != null) | ||
156 | m_ColumnNames.Add(row["ColumnName"].ToString()); | ||
157 | } | ||
155 | } | 158 | } |
156 | 159 | ||
157 | foreach (string s in m_ColumnNames) | 160 | foreach (string s in m_ColumnNames) |