diff options
author | Justin Clark-Casey (justincc) | 2010-04-16 22:57:44 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-04-16 22:57:44 +0100 |
commit | 45563e20e0167cd0349503919a96658ca119d11e (patch) | |
tree | 6a8f7003cffc613903d14592f6c2723f349183de /OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs | |
parent | refactor: crudely move the RezMultipleAttachments() method into the Attachmen... (diff) | |
download | opensim-SC_OLD-45563e20e0167cd0349503919a96658ca119d11e.zip opensim-SC_OLD-45563e20e0167cd0349503919a96658ca119d11e.tar.gz opensim-SC_OLD-45563e20e0167cd0349503919a96658ca119d11e.tar.bz2 opensim-SC_OLD-45563e20e0167cd0349503919a96658ca119d11e.tar.xz |
minor: correctly print out missing item id when it can't be found rather than a NullReferenceException
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs index e97d21f..a2f26d5 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs | |||
@@ -311,10 +311,13 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
311 | { | 311 | { |
312 | // m_log.DebugFormat("[LOCAL INVENTORY SERVICES CONNECTOR]: Requesting inventory item {0}", item.ID); | 312 | // m_log.DebugFormat("[LOCAL INVENTORY SERVICES CONNECTOR]: Requesting inventory item {0}", item.ID); |
313 | 313 | ||
314 | UUID requestedItemId = item.ID; | ||
315 | |||
314 | item = m_InventoryService.GetItem(item); | 316 | item = m_InventoryService.GetItem(item); |
315 | 317 | ||
316 | if (null == item) | 318 | if (null == item) |
317 | m_log.ErrorFormat("[LOCAL INVENTORY SERVICES CONNECTOR]: Could not find item with id {0}", item.ID); | 319 | m_log.ErrorFormat( |
320 | "[LOCAL INVENTORY SERVICES CONNECTOR]: Could not find item with id {0}", requestedItemId); | ||
318 | 321 | ||
319 | return item; | 322 | return item; |
320 | } | 323 | } |