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

(cherry-picked from 4d61fb5)
  • Loading branch information
nyalldawson committed May 3, 2018
1 parent f9a8d9f commit 5709908
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.isNull() )
Expand Down

0 comments on commit 5709908

Please sign in to comment.