Skip to content
Permalink
Browse files

Fix a crash when importing layers without geometry to mssql

  • Loading branch information
nyalldawson committed Jan 29, 2016
1 parent 49e4567 commit 4a1bf6d34ddb3a423f4e5a91069dc049c8aa7957
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/providers/mssql/qgsmssqlprovider.cpp
@@ -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 );
}
}

0 comments on commit 4a1bf6d

Please sign in to comment.
You can’t perform that action at this time.