* Fixed the Cable Beach inventory server to save the CreatorID as well as properly handling null item names and descriptions * Fixed the MySQL reader to safely handle null values in string columns that can be null

0.6.9
OpenSim Master 2010-01-18 15:50:33 -08:00 committed by Melanie
parent 2953bee1f4
commit 97eaae9d84
1 changed files with 2 additions and 2 deletions

View File

@ -345,8 +345,8 @@ namespace OpenSim.Data.MySQL
item.AssetID = new UUID((string) reader["assetID"]); item.AssetID = new UUID((string) reader["assetID"]);
item.AssetType = (int) reader["assetType"]; item.AssetType = (int) reader["assetType"];
item.Folder = new UUID((string) reader["parentFolderID"]); item.Folder = new UUID((string) reader["parentFolderID"]);
item.Name = (string) reader["inventoryName"]; item.Name = (string)(reader["inventoryName"] ?? String.Empty);
item.Description = (string) reader["inventoryDescription"]; item.Description = (string)(reader["inventoryDescription"] ?? String.Empty);
item.NextPermissions = (uint) reader["inventoryNextPermissions"]; item.NextPermissions = (uint) reader["inventoryNextPermissions"];
item.CurrentPermissions = (uint) reader["inventoryCurrentPermissions"]; item.CurrentPermissions = (uint) reader["inventoryCurrentPermissions"];
item.InvType = (int) reader["invType"]; item.InvType = (int) reader["invType"];