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 5709908)
  • Loading branch information
nyalldawson committed May 24, 2018
1 parent bbb5990 commit bacaee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/oracle/qgsoracleprovider.cpp
Expand Up @@ -1367,7 +1367,7 @@ bool QgsOracleProvider::addFeatures( QgsFeatureList &flist )

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 bacaee4

Please sign in to comment.