Skip to content

Commit 899c57a

Browse files
Change comparison back to NULL
filter_null method previously filtered the NULL values using NULL type in qgis.core which is a QPyNullVariant. f9e0093 This was subsequently changed to 'is not None' comparison which is incorrect. The current version fails to filter out the null values.
1 parent aacb37d commit 899c57a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/fTools/tools/doSpatialJoin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def myself(L):
5656

5757
def filter_null(vals):
5858
"""Takes an iterator of values and returns a new iterator returning the same values but skipping any NULL values"""
59-
return (v for v in vals if v is not None)
59+
return (v for v in vals if v != NULL)
6060

6161

6262
class Dialog(QDialog, Ui_Dialog):

0 commit comments

Comments
 (0)