Remove pointless NRE check in IAM.RezObject() since this can never occur

remove-scene-viewer
Justin Clark-Casey (justincc) 2011-09-01 23:06:57 +01:00
parent 1bf29d60e1
commit 8b83c4a433
1 changed files with 1 additions and 15 deletions

View File

@ -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