Fix validation of object before using it

This commit is contained in:
Murtuza Zabuawala
2016-06-07 12:37:58 +01:00
committed by Dave Page
parent 20a22731e0
commit ac2612264c

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
});
}