You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 }
Environment Information
JDK 21
Windows
Example Application
No response
Version
4.5.0
The text was updated successfully, but these errors were encountered:
bzolivereckle
changed the title
Latest changes on DefaultPage behavoiur breaks io.micronaut.data.model.Page.map
Latest changes on DefaultPage behaviour breaks io.micronaut.data.model.Page.map
Jun 21, 2024
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
The text was updated successfully, but these errors were encountered: