GridIMs don't have a (sending) client, which led to a NRE on access.
Doesn't use client now in that case.0.6.1-post-fixes
parent
9e7d00c1e6
commit
e1ccbed982
|
@ -75,9 +75,12 @@ namespace OpenSim.Framework
|
|||
offline = 0;
|
||||
Position = _position;
|
||||
binaryBucket = _binaryBucket;
|
||||
|
||||
ParentEstateID = scene.RegionInfo.EstateSettings.ParentEstateID;
|
||||
RegionID = scene.RegionInfo.RegionSettings.RegionUUID.Guid;
|
||||
|
||||
if (scene != null)
|
||||
{
|
||||
ParentEstateID = scene.RegionInfo.EstateSettings.ParentEstateID;
|
||||
RegionID = scene.RegionInfo.RegionSettings.RegionUUID.Guid;
|
||||
}
|
||||
timestamp = (uint)Util.UnixTimeSinceEpoch();
|
||||
}
|
||||
|
||||
|
|
|
@ -127,7 +127,8 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
|
|||
return;
|
||||
}
|
||||
|
||||
GridInstantMessage im = new GridInstantMessage(client.Scene,
|
||||
IScene scene = client == null ? null : client.Scene;
|
||||
GridInstantMessage im = new GridInstantMessage(scene,
|
||||
fromAgentID, fromAgentName, fromAgentSession, toAgentID,
|
||||
dialog, fromGroup, message, imSessionID,
|
||||
offline != 0 ? true : false, Position,
|
||||
|
|
Loading…
Reference in New Issue