Bladeren bron

http error

kidd3166 1 jaar geleden
bovenliggende
commit
473c7ac2c5
2 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. 2 1
      lib/application.dart
  2. 1 0
      lib/widgets/dialog/search_device_connect.dart

+ 2 - 1
lib/application.dart

@@ -95,7 +95,8 @@ class Application {
       print(e);
     }
     infos.forEach((key, value) {
-      infos[key] = Uri.encodeComponent(value);
+      if(value is String)
+        infos[key] = Uri.encodeComponent(value);
     });
     return infos;
   }

+ 1 - 0
lib/widgets/dialog/search_device_connect.dart

@@ -47,6 +47,7 @@ class _SearchDeviceConnectDialog extends State<SearchDeviceConnectDialog> with S
     }));
 
     addSubscription(_flutterReactiveBle.connectedDeviceStream.listen((event) {
+      if(_timer == null)return;
       // if (event.failure != null) return;
 
       // print("11111111111111111111111 $event $_timer");