Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't try to load empty vector tile uris
  • Loading branch information
nyalldawson committed May 16, 2023
1 parent cf3aeb5 commit d70b8ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/vectortile/qgsvectortilelayer.cpp
Expand Up @@ -45,7 +45,8 @@ QgsVectorTileLayer::QgsVectorTileLayer( const QString &uri, const QString &baseN
{
mDataSource = uri;

setValid( loadDataSource() );
if ( !uri.isEmpty() )
setValid( loadDataSource() );

// set a default renderer
QgsVectorTileBasicRenderer *renderer = new QgsVectorTileBasicRenderer;
Expand Down

0 comments on commit d70b8ec

Please sign in to comment.