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
|
@ -76,8 +76,11 @@ namespace OpenSim.Framework
|
||||||
Position = _position;
|
Position = _position;
|
||||||
binaryBucket = _binaryBucket;
|
binaryBucket = _binaryBucket;
|
||||||
|
|
||||||
|
if (scene != null)
|
||||||
|
{
|
||||||
ParentEstateID = scene.RegionInfo.EstateSettings.ParentEstateID;
|
ParentEstateID = scene.RegionInfo.EstateSettings.ParentEstateID;
|
||||||
RegionID = scene.RegionInfo.RegionSettings.RegionUUID.Guid;
|
RegionID = scene.RegionInfo.RegionSettings.RegionUUID.Guid;
|
||||||
|
}
|
||||||
timestamp = (uint)Util.UnixTimeSinceEpoch();
|
timestamp = (uint)Util.UnixTimeSinceEpoch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -127,7 +127,8 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
GridInstantMessage im = new GridInstantMessage(client.Scene,
|
IScene scene = client == null ? null : client.Scene;
|
||||||
|
GridInstantMessage im = new GridInstantMessage(scene,
|
||||||
fromAgentID, fromAgentName, fromAgentSession, toAgentID,
|
fromAgentID, fromAgentName, fromAgentSession, toAgentID,
|
||||||
dialog, fromGroup, message, imSessionID,
|
dialog, fromGroup, message, imSessionID,
|
||||||
offline != 0 ? true : false, Position,
|
offline != 0 ? true : false, Position,
|
||||||
|
|
Loading…
Reference in New Issue