mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
guard against npe
This commit is contained in:
parent
677a80c16b
commit
077ee32ea5
@ -105,7 +105,7 @@ class Adb {
|
||||
});
|
||||
socket.done.then((_) => controller.close());
|
||||
},
|
||||
onCancel: () => socket.destroy()
|
||||
onCancel: () => socket?.destroy()
|
||||
);
|
||||
|
||||
return controller.stream;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user