From e210d958219d0c400544f849202279c78feeea9d Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Thu, 27 Oct 2011 02:50:58 +0100 Subject: 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 --- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 7affa45..9f24ee7 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -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) -- cgit v1.1