* 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

slimupdates
OpenSim Master 2010-01-18 15:50:33 -08:00 committed by John Hurliman
parent 0ab8dd61d7
commit e982397cde
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"];