Catch newid == null which is what happens if the asset service is offline (seems a connection failure does not throw an exception)

This commit is contained in:
Tom Grimshaw
2010-07-01 08:48:02 -07:00
parent 9012084d11
commit 1cb7695fb0

View File

@@ -271,6 +271,10 @@ namespace OpenSim.Services.Connectors
{
newID = SynchronousRestObjectRequester.
MakeRequest<AssetBase, string>("POST", uri, asset);
if (newID == null)
{
newID = UUID.Zero.ToString();
}
}
catch (Exception e)
{