Index: third_party/WebKit/Source/devtools/front_end/cookie_table/CookiesTable.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/cookie_table/CookiesTable.js b/third_party/WebKit/Source/devtools/front_end/cookie_table/CookiesTable.js |
index 4bb51710c7e9f87027522c90879ab0ceb33de3a2..45b3271f84836d982278f3f725594273a7e59d51 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/cookie_table/CookiesTable.js |
+++ b/third_party/WebKit/Source/devtools/front_end/cookie_table/CookiesTable.js |
@@ -165,6 +165,9 @@ CookieTable.CookiesTable = class extends UI.VBox { |
* @return {?SDK.Cookie} |
*/ |
_findSelectedCookie(selectionCookies, cookies) { |
+ if (!cookies) |
eostroukhov
2017/03/20 17:34:59
Please fix JSDoc comment above to indicate that co
|
+ return null; |
+ |
var current = selectionCookies.current; |
var foundCurrent = cookies.find(cookie => this._isSameCookie(cookie, current)); |
if (foundCurrent) |