Sometimes the list of remotes can be null (#96)
This commit is contained in:
parent
a5ec4f5ed5
commit
bb457c7c83
|
@ -113,7 +113,7 @@ class SiteList {
|
|||
print("Error while migrating site to fs: \(error!.localizedDescription)")
|
||||
}
|
||||
|
||||
print("Migraded site to fs: \(site.name)")
|
||||
print("Migrated site to fs: \(site.name)")
|
||||
site.needsToMigrateToFS = false
|
||||
dispatchGroup.leave()
|
||||
}
|
||||
|
|
|
@ -32,9 +32,9 @@ class HostInfo {
|
|||
cert = Certificate.fromJson(json['cert']);
|
||||
}
|
||||
|
||||
List<dynamic> addrs = json['remoteAddrs'];
|
||||
List<dynamic>? addrs = json['remoteAddrs'];
|
||||
List<UDPAddress> remoteAddresses = [];
|
||||
addrs.forEach((val) {
|
||||
addrs?.forEach((val) {
|
||||
remoteAddresses.add(UDPAddress.fromJson(val));
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue