Skip to content

Commit

Permalink
FIX Defensive check for undefined indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Feb 1, 2019
1 parent 0535a5b commit a6c31fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Check/ScrutinizerCheck.php
Expand Up @@ -46,7 +46,7 @@ public function run()
}

// Not set up (404)
if (!isset($response['applications']['master'])) {
if (!isset($response['applications']['master']['index']['_embedded']['project']['metric_values'])) {
return;
}

Expand Down

0 comments on commit a6c31fd

Please sign in to comment.