From fe85dc90306596d838730b0276f06b6e36a1912c Mon Sep 17 00:00:00 2001 From: Lin Clark Date: Sun, 2 Oct 2016 15:16:49 -0700 Subject: [PATCH] Bug 1306460 - New console frontend: Fix text filtering. r=bgrins,r=nchevobbe MozReview-Commit-ID: A0sEoQ2bzdo --- .../client/webconsole/new-console-output/selectors/messages.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/devtools/client/webconsole/new-console-output/selectors/messages.js b/devtools/client/webconsole/new-console-output/selectors/messages.js index 948d4aff4c48..3b559c91f440 100644 --- a/devtools/client/webconsole/new-console-output/selectors/messages.js +++ b/devtools/client/webconsole/new-console-output/selectors/messages.js @@ -99,6 +99,9 @@ function search(messages, text = "") { } function isTextInFrame(text, frame) { + if (!frame) { + return false; + } // @TODO Change this to Object.values once it's supported in Node's version of V8 return Object.keys(frame) .map(key => frame[key])