From 7f4d646aeacef5e82a4f8df1494e3752afc3372f Mon Sep 17 00:00:00 2001 From: Douglas R. Miles Date: Sat, 31 Oct 2009 19:24:14 -0800 Subject: http://opensimulator.org/mantis/view.php?id=4337 --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 +- .../Connectors/Authorization/AuthorizationServiceConnector.cs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 3849558..c9221b8 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -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"; diff --git a/OpenSim/Services/Connectors/Authorization/AuthorizationServiceConnector.cs b/OpenSim/Services/Connectors/Authorization/AuthorizationServiceConnector.cs index 7926efb..2cb80bd 100644 --- a/OpenSim/Services/Connectors/Authorization/AuthorizationServiceConnector.cs +++ b/OpenSim/Services/Connectors/Authorization/AuthorizationServiceConnector.cs @@ -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; -- cgit v1.1