Skip to content

Commit 3fcd1fd

Browse files
committed
Don't crash when trying to sync raster layer for offline editing
Fix #14848
1 parent 2f5c3a5 commit 3fcd1fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/qgsofflineediting.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ bool QgsOfflineEditing::convertToOfflineProject( const QString& offlineDataPath,
106106
{
107107
QgsMapLayer* layer = QgsMapLayerRegistry::instance()->mapLayer( layerIds.at( i ) );
108108
QgsVectorLayer* vl = qobject_cast<QgsVectorLayer*>( layer );
109+
if ( !vl )
110+
continue;
109111
QgsVectorJoinList joins = vl->vectorJoins();
110112

111113
// Layer names will be appended an _offline suffix

0 commit comments

Comments
 (0)