Skip to content


Change comparison back to NULL
Browse files Browse the repository at this point in the history
filter_null method previously filtered the NULL values using NULL type in qgis.core which is a QPyNullVariant. 

This was subsequently changed to 'is not None' comparison which is incorrect. The current version fails to filter out the null values.
  • Loading branch information
spatialthoughts committed Jan 4, 2016
1 parent aacb37d commit 899c57a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/fTools/tools/
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def myself(L):

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

class Dialog(QDialog, Ui_Dialog):
Expand Down

0 comments on commit 899c57a

Please sign in to comment.