Remove pointless NRE check in IAM.RezObject() since this can never occur
parent
1bf29d60e1
commit
8b83c4a433
|
@ -865,21 +865,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
||||||
group.SetFromItemID(itemID);
|
group.SetFromItemID(itemID);
|
||||||
}
|
}
|
||||||
|
|
||||||
SceneObjectPart rootPart = null;
|
SceneObjectPart rootPart = group.GetChildPart(group.UUID);
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
rootPart = group.GetChildPart(group.UUID);
|
|
||||||
}
|
|
||||||
catch (NullReferenceException)
|
|
||||||
{
|
|
||||||
string isAttachment = "";
|
|
||||||
|
|
||||||
if (attachment)
|
|
||||||
isAttachment = " Object was an attachment";
|
|
||||||
|
|
||||||
m_log.Error("[AGENT INVENTORY]: Error rezzing ItemID: " + itemID + " object has no rootpart." + isAttachment);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Since renaming the item in the inventory does not
|
// Since renaming the item in the inventory does not
|
||||||
// affect the name stored in the serialization, transfer
|
// affect the name stored in the serialization, transfer
|
||||||
|
|
Loading…
Reference in New Issue