The iteration over the map is processed for all elements and returns an empty page if page has no elements.
Actual Behaviour
If the page is empty the map method throws an
java.lang.IllegalStateException: Page does not contain total count. It is likely that the Pageable needs to be modified to request this information.
at io.micronaut.data.model.DefaultPage.getTotalSize(DefaultPage.java:68)
at io.micronaut.data.model.Page.map(Page.java:99)
Steps To Reproduce
val page = Page.empty()
val mapped = page.map{ it }
Expected Behavior
The iteration over the map is processed for all elements and returns an empty page if page has no elements.
Actual Behaviour
If the page is empty the map method throws an
Steps To Reproduce
Environment Information
JDK 21 Windows
Example Application
No response
Version
4.5.0