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

Sum fails with NPE if there's nothing to sum #351

Closed
TuomasKiviaho opened this issue Mar 4, 2013 · 1 comment
Closed

Sum fails with NPE if there's nothing to sum #351

TuomasKiviaho opened this issue Mar 4, 2013 · 1 comment
Milestone

Comments

@TuomasKiviaho
Copy link
Contributor

@TuomasKiviaho TuomasKiviaho commented Mar 4, 2013

A simple sum using query.from(foo).simpleResult(foo.bar.sum()) fails with NPE if there are no matching rows in foo to begin with. I quess that returning a NULL would be more appropriate and the fix should in that case go to MathUtils.cast

timowest added a commit that referenced this issue Mar 4, 2013
@timowest
Copy link
Member

@timowest timowest commented Mar 21, 2013

Released in 3.0.0

@timowest timowest closed this Mar 21, 2013
@timowest timowest added this to the 3.0.0 milestone Apr 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants