Ignore a nil message, nebula hasn't booted yet (#90)

This commit is contained in:
Nate Brown 2022-11-18 13:37:15 -06:00 committed by GitHub
parent 37758d4a01
commit 6108bf801b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -285,7 +285,7 @@ class Site {
Future<List<HostInfo>> listHostmap() async { Future<List<HostInfo>> listHostmap() async {
try { try {
var ret = await platform.invokeMethod("active.listHostmap", <String, String>{"id": id}); var ret = await platform.invokeMethod("active.listHostmap", <String, String>{"id": id});
if (ret == null) { if (ret == null || ret == "null") {
return []; return [];
} }
@ -307,7 +307,7 @@ class Site {
Future<List<HostInfo>> listPendingHostmap() async { Future<List<HostInfo>> listPendingHostmap() async {
try { try {
var ret = await platform.invokeMethod("active.listPendingHostmap", <String, String>{"id": id}); var ret = await platform.invokeMethod("active.listPendingHostmap", <String, String>{"id": id});
if (ret == null) { if (ret == null || ret == "null") {
return []; return [];
} }