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";