Fix validation of object before using it

This commit is contained in:
Murtuza Zabuawala authored and Dave Page committed 2016-06-07 12:37:58 +01:00
1 parent 20a22731e0
commit ac2612264c
1 file changed
+2 -1
@@ -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
});
}