Douglas R. Miles 2009-10-31 19:24:14 -08:00 committed by Diva Canto
parent 50b599a62b
commit 7f4d646aea
2 changed files with 6 additions and 2 deletions

View File

@ -3817,7 +3817,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{
case 1: // DATA_ONLINE (0|1)
// TODO: implement fetching of this information
if (userProfile.CurrentAgent.AgentOnline)
if (userProfile.CurrentAgent!=null && userProfile.CurrentAgent.AgentOnline)
reply = "1";
else
reply = "0";

View File

@ -108,7 +108,11 @@ namespace OpenSim.Services.Connectors
message="";
return m_ResponseOnFailure;
}
if (response==null)
{
message = "Null Pointer";
return m_ResponseOnFailure;
}
m_log.DebugFormat("[AUTHORIZATION CONNECTOR] response from remote service was {0}", response.Message);
message = response.Message;