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

This commit is contained in:
Melanie
2013-01-24 18:23:10 +01:00
parent 8c6984eac1
commit 9d2e832b85
@@ -533,6 +533,9 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
ResponseBody = e.Message;
}
if (ResponseBody == null)
ResponseBody = String.Empty;
_finished = true;
return;
}
@@ -546,6 +549,9 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
response.Close();
}
if (ResponseBody == null)
ResponseBody = String.Empty;
_finished = true;
}