From f5d46527541eff23cb594c0b8fc215d0e14f7914 Mon Sep 17 00:00:00 2001 From: Jonathan Cobb Date: Wed, 11 Mar 2020 12:24:35 -0400 Subject: [PATCH] default to root network if no network set up --- .../java/bubble/service/cloud/StandardStorageService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bubble-server/src/main/java/bubble/service/cloud/StandardStorageService.java b/bubble-server/src/main/java/bubble/service/cloud/StandardStorageService.java index 97c1921f..92b6008b 100644 --- a/bubble-server/src/main/java/bubble/service/cloud/StandardStorageService.java +++ b/bubble-server/src/main/java/bubble/service/cloud/StandardStorageService.java @@ -4,6 +4,7 @@ */ package bubble.service.cloud; +import bubble.ApiConstants; import bubble.cloud.storage.StorageServiceDriver; import bubble.dao.cloud.CloudServiceDAO; import bubble.model.cloud.CloudService; @@ -44,7 +45,9 @@ public class StandardStorageService implements StorageService { } } - private String thisNodeId() { return configuration.getThisNode() != null ? configuration.getThisNode().getUuid() : null; } + private String thisNodeId() { + return configuration.getThisNode() != null ? configuration.getThisNode().getUuid() : ApiConstants.ROOT_NETWORK_UUID; + } public boolean exists(String account, String uri) { final StorageTarget target = new StorageTarget(account, uri);