mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user