From 5f51abada98a0edfbfb6823abb0364f0620d0f97 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 23 Aug 2014 18:16:11 +0200 Subject: If GridUserService is asked for a nonexistent user, bail gracefully --- OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs b/OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs index 0b98e9a..9199c68 100644 --- a/OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs +++ b/OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs @@ -184,6 +184,9 @@ namespace OpenSim.Server.Handlers.GridUser GridUserInfo guinfo = m_GridUserService.GetGridUserInfo(user); + if (guinfo == null) + return FailureResult(); + Dictionary result = new Dictionary(); if (guinfo != null) result["result"] = guinfo.ToKeyValuePairs(); -- cgit v1.1