aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs')
-rw-r--r--OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
index 3b02c88..017cb29 100644
--- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
+++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
@@ -440,7 +440,13 @@ namespace OpenSim.Framework.Communications.Cache
440 { 440 {
441 if (userProfile.HasReceivedInventory) 441 if (userProfile.HasReceivedInventory)
442 { 442 {
443 InventoryItemBase item = userProfile.RootFolder.FindItem(itemID); 443 InventoryItemBase item = null;
444 if ( userProfile.RootFolder == null )
445 m_log.ErrorFormat(
446 "[AGENT INVENTORY]: User {0} {1} does not have a root folder.",
447 remoteClient.Name, remoteClient.AgentId);
448 else
449 item = userProfile.RootFolder.FindItem(itemID);
444 if (item != null) 450 if (item != null)
445 { 451 {
446 remoteClient.SendInventoryItemDetails(ownerID, item); 452 remoteClient.SendInventoryItemDetails(ownerID, item);