HG Inventoty: Guard against items not found.

iar_mods
Diva Canto 2012-01-26 17:00:58 -08:00
parent 6da82d9805
commit 91ac21b9ec
1 changed files with 7 additions and 6 deletions

View File

@ -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);
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;
// 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;
}