Fix timing-related null pointer crash when tile calculations are invoked before rendering surface is created
@@ -381,6 +381,10 @@ namespace carto {
_visibleTiles.clear();
_preloadingTiles.clear();
+ if (!_tileTransformer) {
+ return;
+ }
+
// Recursively calculate visible tiles
calculateVisibleTilesRecursive(cullState, MapTile(0, 0, 0, _frameNr), _dataSource->getDataExtent());
if (auto options = _options.lock()) {
