Skip to content
Permalink
Browse files

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

to data provider

(cherry-picked from 5709908)
  • Loading branch information
nyalldawson committed Apr 21, 2018
1 parent bbb5990 commit bacaee4a117f3b40c13202abb716b9c15ea04275
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/oracle/qgsoracleprovider.cpp
@@ -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() )

0 comments on commit bacaee4

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