diff options
author | Diva Canto | 2013-07-04 11:36:10 -0700 |
---|---|---|
committer | Diva Canto | 2013-07-04 11:36:10 -0700 |
commit | ec9ffbb89a8925cebae29d9950475eaa1b280de4 (patch) | |
tree | ead8813b87ee99f7562d0a1409996199205cac63 /OpenSim/Region/CoreModules/Avatar | |
parent | More debug related to the previous commit (diff) | |
download | opensim-SC_OLD-ec9ffbb89a8925cebae29d9950475eaa1b280de4.zip opensim-SC_OLD-ec9ffbb89a8925cebae29d9950475eaa1b280de4.tar.gz opensim-SC_OLD-ec9ffbb89a8925cebae29d9950475eaa1b280de4.tar.bz2 opensim-SC_OLD-ec9ffbb89a8925cebae29d9950475eaa1b280de4.tar.xz |
More debug, same issue
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs index 16a2b9b..ea69abb 100644 --- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs | |||
@@ -523,15 +523,17 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
523 | foreach (PresenceInfo friendSession in friendSessions) | 523 | foreach (PresenceInfo friendSession in friendSessions) |
524 | { | 524 | { |
525 | // let's guard against sessions-gone-bad | 525 | // let's guard against sessions-gone-bad |
526 | if (friendSession.RegionID != UUID.Zero) | 526 | if (friendSession != null && friendSession.RegionID != UUID.Zero) |
527 | { | 527 | { |
528 | m_log.DebugFormat("[FRIENDS]: Get region {0}", friendSession.RegionID); | ||
528 | GridRegion region = GridService.GetRegionByUUID(m_Scenes[0].RegionInfo.ScopeID, friendSession.RegionID); | 529 | GridRegion region = GridService.GetRegionByUUID(m_Scenes[0].RegionInfo.ScopeID, friendSession.RegionID); |
529 | m_log.DebugFormat("[FRIENDS]: Remote Notify to region {0}", (region == null ? "null" : region.RegionName)); | ||
530 | if (region != null) | 530 | if (region != null) |
531 | { | 531 | { |
532 | m_FriendsSimConnector.StatusNotify(region, userID, friendSession.UserID, online); | 532 | m_FriendsSimConnector.StatusNotify(region, userID, friendSession.UserID, online); |
533 | } | 533 | } |
534 | } | 534 | } |
535 | else | ||
536 | m_log.DebugFormat("[FRIENDS]: friend session is null or the region is UUID.Zero"); | ||
535 | } | 537 | } |
536 | } | 538 | } |
537 | 539 | ||