aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Data/MySQL/MySQLRegionData.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Data/MySQL/MySQLRegionData.cs b/OpenSim/Data/MySQL/MySQLRegionData.cs
index c20c392..948cdf3 100644
--- a/OpenSim/Data/MySQL/MySQLRegionData.cs
+++ b/OpenSim/Data/MySQL/MySQLRegionData.cs
@@ -187,7 +187,11 @@ namespace OpenSim.Data.MySQL
187 if (s == "locY") 187 if (s == "locY")
188 continue; 188 continue;
189 189
190 ret.Data[s] = result[s].ToString(); 190 object value = result[s];
191 if (value is DBNull)
192 ret.Data[s] = null;
193 else
194 ret.Data[s] = result[s].ToString();
191 } 195 }
192 196
193 retList.Add(ret); 197 retList.Add(ret);