aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-04-16 22:57:44 +0100
committerJustin Clark-Casey (justincc)2010-05-20 23:44:49 +0100
commit427ae1087fa67088afa23bcf533c63b52b62ae42 (patch)
tree8935860451042c673d0ed0f424553b1a22c4d316
parentDon't append ACKs to zerocoded packets. Although this should fine in theory, ... (diff)
downloadopensim-SC_OLD-427ae1087fa67088afa23bcf533c63b52b62ae42.zip
opensim-SC_OLD-427ae1087fa67088afa23bcf533c63b52b62ae42.tar.gz
opensim-SC_OLD-427ae1087fa67088afa23bcf533c63b52b62ae42.tar.bz2
opensim-SC_OLD-427ae1087fa67088afa23bcf533c63b52b62ae42.tar.xz
minor: correctly print out missing item id when it can't be found rather than a NullReferenceException
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs5
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.Inventory.cs1
2 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs
index 191e859..cabd51c 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs
@@ -314,10 +314,13 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory
314 { 314 {
315// m_log.DebugFormat("[LOCAL INVENTORY SERVICES CONNECTOR]: Requesting inventory item {0}", item.ID); 315// m_log.DebugFormat("[LOCAL INVENTORY SERVICES CONNECTOR]: Requesting inventory item {0}", item.ID);
316 316
317 UUID requestedItemId = item.ID;
318
317 item = m_InventoryService.GetItem(item); 319 item = m_InventoryService.GetItem(item);
318 320
319 if (null == item) 321 if (null == item)
320 m_log.ErrorFormat("[LOCAL INVENTORY SERVICES CONNECTOR]: Could not find item with id {0}", item.ID); 322 m_log.ErrorFormat(
323 "[LOCAL INVENTORY SERVICES CONNECTOR]: Could not find item with id {0}", requestedItemId);
321 324
322 return item; 325 return item;
323 } 326 }
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
index 4f2b446..fcbeeb6 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
@@ -531,7 +531,6 @@ namespace OpenSim.Region.Framework.Scenes
531 return null; 531 return null;
532 } 532 }
533 533
534
535 if (recipientParentFolderId == UUID.Zero) 534 if (recipientParentFolderId == UUID.Zero)
536 { 535 {
537 InventoryFolderBase recipientRootFolder = InventoryService.GetRootFolder(recipientId); 536 InventoryFolderBase recipientRootFolder = InventoryService.GetRootFolder(recipientId);