Skip to content
Permalink
Browse files

[oracle] Fix crash when adding a feature with missing attributes

to data provider
  • Loading branch information
nyalldawson committed Apr 21, 2018
1 parent a74414c commit 4d61fb5e63428133acd5cf232f29e04faa0f393b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/oracle/qgsoracleprovider.cpp
@@ -1298,7 +1298,7 @@ bool QgsOracleProvider::addFeatures( QgsFeatureList &flist, QgsFeatureSink::Flag

for ( int i = 0; i < fieldId.size(); i++ )
{
QVariant value = attributevec[ fieldId[i] ];
QVariant value = attributevec.value( fieldId[i], QVariant() );

QString v;
if ( !value.isValid() )

0 comments on commit 4d61fb5

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