mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 03:15:41 +08:00
now that creatorID is no longer a strict UUID, and the column can still be NULL,
we lost protection from NULL strings. This puts some protection in for that case. This may address many of the inventory issues that are being seen intermitently.
This commit is contained in:
@@ -306,7 +306,16 @@ namespace OpenSim.Data.MySQL
|
||||
try
|
||||
{
|
||||
InventoryItemBase item = new InventoryItemBase();
|
||||
item.CreatorId = (string)reader["creatorID"];
|
||||
|
||||
// TODO: this is to handle a case where NULLs creep in there, which we are not sure is indemic to the system, or legacy. It would be nice to live fix these.
|
||||
if (reader["creatorID"] == null)
|
||||
{
|
||||
item.CreatorId = UUID.Zero.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
item.CreatorId = (string)reader["creatorID"];
|
||||
}
|
||||
|
||||
// Be a bit safer in parsing these because the
|
||||
// database doesn't enforce them to be not null, and
|
||||
|
||||
Reference in New Issue
Block a user