mirror of
https://github.com/opensim/opensim.git
synced 2026-05-26 12:05:34 +08:00
GridIMs don't have a (sending) client, which led to a NRE on access.
Doesn't use client now in that case.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user