kidd3166 1 rok pred
rodič
commit
84beeb9dbf

+ 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");