From 6108bf801b388c67cfbdf9dadac0fd0463fff4f0 Mon Sep 17 00:00:00 2001 From: Nate Brown Date: Fri, 18 Nov 2022 13:37:15 -0600 Subject: [PATCH] Ignore a nil message, nebula hasn't booted yet (#90) --- lib/models/Site.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/models/Site.dart b/lib/models/Site.dart index 07153a8..daecef3 100644 --- a/lib/models/Site.dart +++ b/lib/models/Site.dart @@ -285,7 +285,7 @@ class Site { Future> listHostmap() async { try { var ret = await platform.invokeMethod("active.listHostmap", {"id": id}); - if (ret == null) { + if (ret == null || ret == "null") { return []; } @@ -307,7 +307,7 @@ class Site { Future> listPendingHostmap() async { try { var ret = await platform.invokeMethod("active.listPendingHostmap", {"id": id}); - if (ret == null) { + if (ret == null || ret == "null") { return []; }