X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d2a55e74eadd28effb16f60d8d9cbe9bbedef14c..6ddd57f1da6139b76db95ad16cccbb95eab01e5d:/services/api/lib/record_filters.rb?ds=inline 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