mirror of
https://github.com/flutter/flutter
synced 2024-10-13 11:42:54 +00: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…
Reference in a new issue