diff --git a/features/support/data_classes.js b/features/support/data_classes.js index a17141e5e..2ea8d4e09 100644 --- a/features/support/data_classes.js +++ b/features/support/data_classes.js @@ -107,6 +107,7 @@ module.exports = { } matchLocation (got, want) { + if (got == null || want == null) return false; return this.match(got[0], util.format('%d ~0.0025%', want.lon)) && this.match(got[1], util.format('%d ~0.0025%', want.lat)); }