HG Inventoty: Guard against items not found.
parent
6da82d9805
commit
91ac21b9ec
|
@ -319,13 +319,14 @@ namespace OpenSim.Services.HypergridService
|
|||
public override InventoryItemBase GetItem(InventoryItemBase item)
|
||||
{
|
||||
InventoryItemBase it = base.GetItem(item);
|
||||
|
||||
if (it != null)
|
||||
{
|
||||
UserAccount user = m_Cache.GetUser(it.CreatorId);
|
||||
|
||||
// Adjust the creator data
|
||||
if (user != null && it != null && (it.CreatorData == null || it.CreatorData == string.Empty))
|
||||
it.CreatorData = m_HomeURL + ";" + user.FirstName + " " + user.LastName;
|
||||
|
||||
}
|
||||
return it;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue