diff options
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteInventoryServiceConnector.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteInventoryServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteInventoryServiceConnector.cs index 62df3bd..bef716b 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteInventoryServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteInventoryServiceConnector.cs | |||
@@ -135,6 +135,9 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
135 | public void RegionLoaded(Scene scene) | 135 | public void RegionLoaded(Scene scene) |
136 | { | 136 | { |
137 | m_UserProfileService = m_Scene.CommsManager.UserProfileCacheService; | 137 | m_UserProfileService = m_Scene.CommsManager.UserProfileCacheService; |
138 | if (m_UserProfileService != null) | ||
139 | m_log.Debug("[XXXX] Set m_UserProfileService in " + m_Scene.RegionInfo.RegionName); | ||
140 | |||
138 | if (!m_Enabled) | 141 | if (!m_Enabled) |
139 | return; | 142 | return; |
140 | 143 | ||
@@ -318,10 +321,15 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
318 | private UUID GetSessionID(UUID userID) | 321 | private UUID GetSessionID(UUID userID) |
319 | { | 322 | { |
320 | if (m_Scene == null) | 323 | if (m_Scene == null) |
324 | { | ||
321 | m_log.Debug("[INVENTORY CONNECTOR]: OOPS! scene is null"); | 325 | m_log.Debug("[INVENTORY CONNECTOR]: OOPS! scene is null"); |
326 | } | ||
322 | 327 | ||
323 | if (m_UserProfileService == null) | 328 | if (m_UserProfileService == null) |
329 | { | ||
324 | m_log.Debug("[INVENTORY CONNECTOR]: OOPS! UserProfileCacheService is null"); | 330 | m_log.Debug("[INVENTORY CONNECTOR]: OOPS! UserProfileCacheService is null"); |
331 | return UUID.Zero; | ||
332 | } | ||
325 | 333 | ||
326 | CachedUserInfo uinfo = m_UserProfileService.GetUserDetails(userID); | 334 | CachedUserInfo uinfo = m_UserProfileService.GetUserDetails(userID); |
327 | if (uinfo != null) | 335 | if (uinfo != null) |