mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
HG Inventoty: Guard against items not found.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user