Addresses mantis #4789. Not really a fix, because the event is harmless anyway. Just shouldn't happen normally.

prebuild-update
Diva Canto 2010-06-27 13:23:51 -07:00
parent a61d817978
commit 3dbc736049
1 changed files with 7 additions and 1 deletions

View File

@ -272,7 +272,7 @@ namespace OpenSim.Server.Handlers.Simulation
//responsedata["str_response_string"] = OSDParser.SerializeJsonString(resp); ??? instead //responsedata["str_response_string"] = OSDParser.SerializeJsonString(resp); ??? instead
} }
// subclasses cab override this // subclasses can override this
protected virtual bool UpdateAgent(GridRegion destination, AgentData agent) protected virtual bool UpdateAgent(GridRegion destination, AgentData agent)
{ {
return m_SimulationService.UpdateAgent(destination, agent); return m_SimulationService.UpdateAgent(destination, agent);
@ -280,6 +280,12 @@ namespace OpenSim.Server.Handlers.Simulation
protected virtual void DoAgentGet(Hashtable request, Hashtable responsedata, UUID id, UUID regionID) protected virtual void DoAgentGet(Hashtable request, Hashtable responsedata, UUID id, UUID regionID)
{ {
if (m_SimulationService == null)
{
m_log.Debug("[AGENT HANDLER]: Agent GET called. Harmless but useless.");
return;
}
GridRegion destination = new GridRegion(); GridRegion destination = new GridRegion();
destination.RegionID = regionID; destination.RegionID = regionID;