Catch newid == null which is what happens if the asset service is offline (seems a connection failure does not throw an exception)
parent
9012084d11
commit
1cb7695fb0
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue