| Index: third_party/WebKit/Source/bindings/core/v8/V8PagePopupControllerBinding.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PagePopupControllerBinding.cpp b/third_party/WebKit/Source/bindings/core/v8/V8PagePopupControllerBinding.cpp
|
| index 85cf4e25d84455899603e10b42942b30cec08008..f9bd956ca85430a02718797a91f2f0211fb1879e 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8PagePopupControllerBinding.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8PagePopupControllerBinding.cpp
|
| @@ -22,9 +22,9 @@ void pagePopupControllerAttributeGetter(
|
| const v8::PropertyCallbackInfo<v8::Value>& info) {
|
| v8::Local<v8::Object> holder = info.Holder();
|
| DOMWindow* impl = V8Window::toImpl(holder);
|
| - PagePopupController* cppValue =
|
| - PagePopupSupplement::from(*toLocalDOMWindow(impl)->frame())
|
| - .pagePopupController();
|
| + PagePopupController* cppValue = nullptr;
|
| + if (LocalFrame* frame = toLocalDOMWindow(impl)->frame())
|
| + cppValue = PagePopupSupplement::from(*frame).pagePopupController();
|
| v8SetReturnValue(info, ToV8(cppValue, holder, info.GetIsolate()));
|
| }
|
|
|
|
|