Null check the response body to make sure we're not crashing the script engine

avinationmerge
Melanie 2013-01-24 18:23:10 +01:00
parent 8c6984eac1
commit 9d2e832b85
1 changed files with 6 additions and 0 deletions

View File

@ -533,6 +533,9 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
ResponseBody = e.Message; ResponseBody = e.Message;
} }
if (ResponseBody == null)
ResponseBody = String.Empty;
_finished = true; _finished = true;
return; return;
} }
@ -546,6 +549,9 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
response.Close(); response.Close();
} }
if (ResponseBody == null)
ResponseBody = String.Empty;
_finished = true; _finished = true;
} }