Skip to content

Commit bacaee4

Browse files
committed
[oracle] Fix crash when adding a feature with missing attributes
to data provider (cherry-picked from 5709908)
1 parent bbb5990 commit bacaee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/oracle/qgsoracleprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@ bool QgsOracleProvider::addFeatures( QgsFeatureList &flist )
13671367

13681368
for ( int i = 0; i < fieldId.size(); i++ )
13691369
{
1370-
QVariant value = attributevec[ fieldId[i] ];
1370+
QVariant value = attributevec.value( fieldId[i], QVariant() );
13711371

13721372
QString v;
13731373
if ( value.isNull() )

0 commit comments

Comments
 (0)