Skip to content
Permalink
Browse files

No need to crash when there are no errors

  • Loading branch information
elpaso authored and nyalldawson committed Oct 9, 2020
1 parent ffc71b5 commit 9fcdbb18d1c0ac5258b7765ec713dfa820abf757
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsvectordataprovider.cpp
@@ -92,7 +92,7 @@ bool QgsVectorDataProvider::addFeatures( QgsFeatureList &flist, Flags flags )

QString QgsVectorDataProvider::lastError() const
{
return mErrors.last();
return mErrors.isEmpty() ? QString() : mErrors.last();
}

bool QgsVectorDataProvider::deleteFeatures( const QgsFeatureIds &ids )

0 comments on commit 9fcdbb1

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