Actions
Bug #6232
closed![Author: Christian Grün](https://www.gravatar.com/avatar/f478199302482ac716114176a7149f11?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: Michael Kay](https://www.gravatar.com/avatar/db6526d63053f09b62e52c2da8b2230a?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
Error message: "An empty sequence is not allowed as the result of a call to map"
Start date:
2023-10-25
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java
Description
When running…
filter(1, map { })
…I get the misleading error message “An empty sequence is not allowed as the result of a call to map”. I would claim it’s even wrong, because map:get(map{}, 1)
or map {}?1
both return an empty sequence.
I assume the hidden message here is that the predicate function of fn:filter
must return a boolean value?
Please register to edit this issue
Actions