Fix validation of object before using it

pull/3/head
Murtuza Zabuawala 2016-06-07 12:37:58 +01:00 committed by Dave Page
parent 20a22731e0
commit ac2612264c
1 changed files with 2 additions and 1 deletions
web/pgadmin/misc/statistics/static/js

View File

@ -264,7 +264,8 @@ function(_, $, pgBrowser, Backgrid) {
name = (columns[idx])['name'];
res.push({
'statistics': name,
'value': row[name]
// Check if row is undefined?
'value': row && row[name] ? row[name] : null
});
}