Skip to content

Commit

Permalink
Check for undefined before trying to read from input
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarhane committed Oct 5, 2016
1 parent 2e1782e commit 30c49c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/services/Bolt.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ angular.module('neo4jApp.services')
}

boltStatsToRESTStats = (summary) ->
return {} unless summary and summary.counters
counters = summary.counters
return {} unless summary and counters
stats = counters._stats
newStats = {}
Object.keys(stats).forEach((key) ->
Expand Down

0 comments on commit 30c49c1

Please sign in to comment.