mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Fix a crash when importing layers without geometry to mssql
This commit is contained in:
parent
49e45675ee
commit
4a1bf6d34d
@ -925,7 +925,9 @@ bool QgsMssqlProvider::addFeatures( QgsFeatureList & flist )
|
||||
}
|
||||
else
|
||||
{
|
||||
QString wkt = geom->exportToWkt();
|
||||
QString wkt;
|
||||
if ( geom && !geom->isEmpty() )
|
||||
wkt = geom->exportToWkt();
|
||||
query.addBindValue( wkt );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user