]> git.proxmox.com Git - flutter/pve_flutter_frontend.git/commitdiff
network bridge selector: cope with null value
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 10 Apr 2024 06:41:05 +0000 (08:41 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Apr 2024 10:37:44 +0000 (12:37 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
lib/bloc/pve_bridge_selector_bloc.dart

index 00ddbcd8783813965afc71d839094d18b0f767fa..6e9d06d61cbc71b0abf85c1dda66e73f010ae9a4 100644 (file)
@@ -53,7 +53,7 @@ class PveBridgeSelectorBloc
           await apiClient.getNodeNetwork(targetNode, type: bridgeType);
       try {
         var selection = bridges
-            .where((item) => item.iface == latestState.value.iface)
+            .where((item) => item.iface == latestState.value?.iface)
             .single;
         yield PveBridgeSelectorState(
           bridges: bridges,