Skip to content
Permalink
Browse files

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

to data provider

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

0 comments on commit 5709908

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