Skip to content

Commit

Permalink
[oracle] Fix crash when adding a feature with missing attributes
Browse files Browse the repository at this point in the history
to data provider
  • Loading branch information
nyalldawson committed Apr 21, 2018
1 parent a74414c commit 4d61fb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/oracle/qgsoracleprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() )
Expand Down

0 comments on commit 4d61fb5

Please sign in to comment.