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

avinationmerge
Tom Grimshaw 2010-07-01 08:48:02 -07:00
parent 9012084d11
commit 1cb7695fb0
1 changed files with 4 additions and 0 deletions

View File

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