diff options
Diffstat (limited to 'OpenSim/Framework/Communications/Clients')
-rw-r--r-- | OpenSim/Framework/Communications/Clients/RegionClient.cs | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/OpenSim/Framework/Communications/Clients/RegionClient.cs b/OpenSim/Framework/Communications/Clients/RegionClient.cs index 6fdacb1..bd71357 100644 --- a/OpenSim/Framework/Communications/Clients/RegionClient.cs +++ b/OpenSim/Framework/Communications/Clients/RegionClient.cs | |||
@@ -124,12 +124,19 @@ namespace OpenSim.Framework.Communications.Clients | |||
124 | 124 | ||
125 | if (!String.IsNullOrEmpty(response)) | 125 | if (!String.IsNullOrEmpty(response)) |
126 | { | 126 | { |
127 | // we assume we got an OSDMap back | 127 | try |
128 | OSDMap r = GetOSDMap(response); | 128 | { |
129 | bool success = r["success"].AsBoolean(); | 129 | // we assume we got an OSDMap back |
130 | reason = r["reason"].AsString(); | 130 | OSDMap r = GetOSDMap(response); |
131 | 131 | bool success = r["success"].AsBoolean(); | |
132 | return success; | 132 | reason = r["reason"].AsString(); |
133 | return success; | ||
134 | } | ||
135 | catch (NullReferenceException e) | ||
136 | { | ||
137 | m_log.InfoFormat("[REST COMMS]: exception on reply of DoCreateChildAgentCall {0}", e.Message); | ||
138 | return false; | ||
139 | } | ||
133 | } | 140 | } |
134 | } | 141 | } |
135 | } | 142 | } |