| 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..3f77294619a6e3d3b1e23f7794fc6b51e8700e95 100644
|
| --- a/sdk/lib/async/stream_impl.dart
|
| +++ b/sdk/lib/async/stream_impl.dart
|
| @@ -1029,6 +1029,7 @@ class _StreamIteratorImpl<T> implements StreamIterator<T> {
|
|
|
| Future cancel() {
|
| StreamSubscription subscription = _subscription;
|
| + if (subscription == null) return null;
|
| if (_state == _STATE_MOVING) {
|
| _Future<bool> hasNext = _futureOrPrefetch;
|
| _clear();
|
|
|