Don't blow our brains out if LLClientView.BulkInventoryUpdate() is wrongly passed a null node reference.

Addresses worst aspect of http://opensimulator.org/mantis/view.php?id=5752
0.7.2-post-fixes
Justin Clark-Casey (justincc) 2011-10-27 02:50:58 +01:00
parent 88ef35cb23
commit 1baadac59a
1 changed files with 3 additions and 1 deletions

View File

@ -1958,8 +1958,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
SendBulkUpdateInventoryItem((InventoryItemBase)node);
else if (node is InventoryFolderBase)
SendBulkUpdateInventoryFolder((InventoryFolderBase)node);
else if (node != null)
m_log.ErrorFormat("[CLIENT]: {0} sent unknown inventory node named {1}", Name, node.Name);
else
m_log.ErrorFormat("[CLIENT]: Client for {0} sent unknown inventory node named {1}", Name, node.Name);
m_log.ErrorFormat("[CLIENT]: {0} sent null inventory node", Name);
}
protected void SendBulkUpdateInventoryItem(InventoryItemBase item)