Ignore a nil message, nebula hasn't booted yet (#90)
This commit is contained in:
parent
37758d4a01
commit
6108bf801b
|
@ -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 [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue