| Index: third_party/WebKit/Source/core/streams/UnderlyingSourceBase.cpp
|
| diff --git a/third_party/WebKit/Source/core/streams/UnderlyingSourceBase.cpp b/third_party/WebKit/Source/core/streams/UnderlyingSourceBase.cpp
|
| index b63fe960860111b84c995e15bd4ffeda51ab5471..d1a2c4c925c14d72b3fc8af5ab8ecf54f6d512c7 100644
|
| --- a/third_party/WebKit/Source/core/streams/UnderlyingSourceBase.cpp
|
| +++ b/third_party/WebKit/Source/core/streams/UnderlyingSourceBase.cpp
|
| @@ -67,8 +67,10 @@ bool UnderlyingSourceBase::hasPendingActivity() const
|
|
|
| void UnderlyingSourceBase::stop()
|
| {
|
| - m_controller->noteHasBeenCanceled();
|
| - m_controller.clear();
|
| + if (m_controller) {
|
| + m_controller->noteHasBeenCanceled();
|
| + m_controller.clear();
|
| + }
|
| }
|
|
|
| DEFINE_TRACE(UnderlyingSourceBase)
|
|
|