Null check the response body to make sure we're not crashing the script engine
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user