Skip to content

Commit

Permalink
wpt: do not try to use the trace log if the getting the result fails
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Jun 20, 2019
1 parent 1a57fec commit c377290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/webpagetest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ module.exports = {
.analyzeUrl(url, this.storageManager, this.log, wptOptions)
.then(result => {
addCustomMetric(result, filterRegistry);
if (result.trace) {
if (result && result.trace) {
forEach(result.trace, (value, key) => {
queue.postMessage(
make('webpagetest.chrometrace', value, {
Expand Down

0 comments on commit c377290

Please sign in to comment.