From f1f0b37bdcb965950867b2fa046cb6e08c270904 Mon Sep 17 00:00:00 2001 From: Petr Sloup Date: Tue, 14 Apr 2015 14:15:47 +0200 Subject: [PATCH] Stronger type checking to continue only if data is defined --- src/ol/source/tileutfgridsource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/source/tileutfgridsource.js b/src/ol/source/tileutfgridsource.js index 866137b4d4..73420748e9 100644 --- a/src/ol/source/tileutfgridsource.js +++ b/src/ol/source/tileutfgridsource.js @@ -271,7 +271,7 @@ ol.source.TileUTFGridTile_.prototype.getImage = function(opt_context) { */ ol.source.TileUTFGridTile_.prototype.getData = function(coordinate) { if (goog.isNull(this.grid_) || goog.isNull(this.keys_) || - goog.isNull(this.data_)) { + !goog.isDefAndNotNull(this.data_)) { return null; } var xRelative = (coordinate[0] - this.extent_[0]) /