X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2115f4609adcc86156e8e0aa59ea38ba5808378e..e20590d485505f58f7745d74a311ca539c9be940:/services/api/lib/record_filters.rb diff --git a/services/api/lib/record_filters.rb b/services/api/lib/record_filters.rb index 2f5b67074a..65c25810ac 100644 --- a/services/api/lib/record_filters.rb +++ b/services/api/lib/record_filters.rb @@ -136,7 +136,7 @@ module RecordFilters raise ArgumentError.new("Invalid operator for subproperty search '#{operator}'") end elsif operator == "exists" - if col.type != :jsonb + if col.nil? or col.type != :jsonb raise ArgumentError.new("Invalid attribute '#{attr}' for operator '#{operator}' in filter") end