aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorHomer Horwitz2008-11-16 19:45:46 +0000
committerHomer Horwitz2008-11-16 19:45:46 +0000
commite1ccbed982cd4500a8b04a5399ac0053d3c2cb47 (patch)
treeda2c6c05f77a885938127e0dad3902af27ab77d2 /OpenSim/Framework
parentAdd MessageTransferModule interface to all scenes, not only the first (diff)
downloadopensim-SC_OLD-e1ccbed982cd4500a8b04a5399ac0053d3c2cb47.zip
opensim-SC_OLD-e1ccbed982cd4500a8b04a5399ac0053d3c2cb47.tar.gz
opensim-SC_OLD-e1ccbed982cd4500a8b04a5399ac0053d3c2cb47.tar.bz2
opensim-SC_OLD-e1ccbed982cd4500a8b04a5399ac0053d3c2cb47.tar.xz
GridIMs don't have a (sending) client, which led to a NRE on access.
Doesn't use client now in that case.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/GridInstantMessage.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Framework/GridInstantMessage.cs b/OpenSim/Framework/GridInstantMessage.cs
index 4ca4e67..9cecf42 100644
--- a/OpenSim/Framework/GridInstantMessage.cs
+++ b/OpenSim/Framework/GridInstantMessage.cs
@@ -75,9 +75,12 @@ namespace OpenSim.Framework
75 offline = 0; 75 offline = 0;
76 Position = _position; 76 Position = _position;
77 binaryBucket = _binaryBucket; 77 binaryBucket = _binaryBucket;
78 78
79 ParentEstateID = scene.RegionInfo.EstateSettings.ParentEstateID; 79 if (scene != null)
80 RegionID = scene.RegionInfo.RegionSettings.RegionUUID.Guid; 80 {
81 ParentEstateID = scene.RegionInfo.EstateSettings.ParentEstateID;
82 RegionID = scene.RegionInfo.RegionSettings.RegionUUID.Guid;
83 }
81 timestamp = (uint)Util.UnixTimeSinceEpoch(); 84 timestamp = (uint)Util.UnixTimeSinceEpoch();
82 } 85 }
83 86