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

scala.math.BigDecimal should not accept a null value #6456

Closed
scabug opened this issue Oct 1, 2012 · 2 comments
Closed

scala.math.BigDecimal should not accept a null value #6456

scabug opened this issue Oct 1, 2012 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

@scabug scabug commented Oct 1, 2012

The scala.math.BigDecimal wrapper can currently wrap null values. This can be tricky as clients will need to handle null checking on the wrapper as well as the wrapped object. The problem is compounded when implicit conversion from the java equivalent is applied.
scala.math.BigdDecima.javaBigDecimal2bigDecimal should handle the null value and avoid wrapping it.

@scabug
Copy link
Author

@scabug scabug commented Oct 1, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6456?orig=1
Reporter: Ralph C (ralph961)

@scabug
Copy link
Author

@scabug scabug commented Jan 15, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants