aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
diff options
context:
space:
mode:
authorMelanie Thielker2008-08-27 00:40:36 +0000
committerMelanie Thielker2008-08-27 00:40:36 +0000
commit670719cb76cdf2b624ec84d631cc14f507e5840b (patch)
tree6ea56f3d55f50d1c83f376ef183b24c9d20098a1 /OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
parent* Eliminate commented out code no longer needed, as discussed on the ml (diff)
downloadopensim-SC_OLD-670719cb76cdf2b624ec84d631cc14f507e5840b.zip
opensim-SC_OLD-670719cb76cdf2b624ec84d631cc14f507e5840b.tar.gz
opensim-SC_OLD-670719cb76cdf2b624ec84d631cc14f507e5840b.tar.bz2
opensim-SC_OLD-670719cb76cdf2b624ec84d631cc14f507e5840b.tar.xz
Mantis #1903
Thank you, cmickeyb, for a patch that prevents the loss of folders received out of sequence, and the items within.
Diffstat (limited to '')
-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);