We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 3086619 commit 30c663eCopy full SHA for 30c663e
python/plugins/processing/algs/qgis/StatisticsByCategories.py
@@ -158,10 +158,13 @@ def addField(name):
158
continue
159
else:
160
value = float(attrs[value_field_index])
161
+ elif field_type == 'string':
162
+ if attrs[value_field_index] == NULL:
163
+ value=''
164
+ else:
165
+ value = str(attrs[value_field_index])
166
elif attrs[value_field_index] == NULL:
167
value = NULL
- elif field_type == 'string':
- value = str(attrs[value_field_index])
168
169
value = attrs[value_field_index]
170
cat = tuple([attrs[c] for c in category_field_indexes])
0 commit comments