| Index: sdk/lib/async/stream_impl.dart
|
| diff --git a/sdk/lib/async/stream_impl.dart b/sdk/lib/async/stream_impl.dart
|
| index 394e1c6a7c72b51b25fc7df35554941a94e2e2e5..ffe7bbb4f56aa668392ff8de726cc9d801500edf 100644
|
| --- a/sdk/lib/async/stream_impl.dart
|
| +++ b/sdk/lib/async/stream_impl.dart
|
| @@ -1036,7 +1036,7 @@ class _StreamIteratorImpl<T> implements StreamIterator<T> {
|
| } else {
|
| _clear();
|
| }
|
| - return subscription.cancel();
|
| + return (subscription == null) ? null : subscription.cancel();
|
| }
|
|
|
| void _onData(T data) {
|
|
|