Skip to content

Commit

Permalink
Fix tile.material null access
Browse files Browse the repository at this point in the history
  • Loading branch information
peppsac committed Jun 15, 2016
1 parent bd48f29 commit f38e28c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Core/Commander/Providers/WMTS_Provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,9 @@ define('Core/Commander/Providers/WMTS_Provider', [

var promises = [];
var paramMaterial = [];
if (tile.material === null) {
return when();
}
// Request parent's texture if no texture at all
var lookAtAncestor = tile.material.getLevelLayerColor(1) === -1;

Expand Down

0 comments on commit f38e28c

Please sign in to comment.