Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If a query returns zero elements, then total count is always null #510

Closed
ctron opened this issue Apr 25, 2017 · 1 comment
Closed

If a query returns zero elements, then total count is always null #510

ctron opened this issue Apr 25, 2017 · 1 comment
Assignees
Labels
Bug This is a bug or an unexpected behaviour. Fix it!

Comments

@ctron
Copy link
Contributor

ctron commented Apr 25, 2017

Starting a query with setAskTotalCount(true);, but returning zero entries will return a result with a getTotalCount() = null.

I would expect getTotalCount()to never return null if setAskTotalCount(true) was called.

@mcarrer mcarrer assigned lorthirk and riccardomodanese and unassigned lorthirk Sep 11, 2017
@Coduz Coduz added the Bug This is a bug or an unexpected behaviour. Fix it! label Aug 29, 2018
@lorthirk
Copy link

I'm closing this since I couldn't reproduce it, given that ResultList.totalCount is a long. Of course it will be reopened should we get a positive test case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug or an unexpected behaviour. Fix it!
Projects
None yet
Development

No branches or pull requests

4 participants