-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
Multiplying BigDecimal with nil gives NullPointerException #2050
Comments
Sorry, one mistake: The exception _CAN_ be caught by a |
Fix for issue 2050 : BigDecimal and nil multiplication
Did you test this on master or 1.7? Because now 1.7 works and master fails :-) |
It's possible that there are specs for this in the specs for rubysl-bigdecimal. The specs for all the rubysl gems no longer live in RubySpec...we need to stitch them together from the gem repos, I guess. |
Fixed and test added to MRI's suite. We'll update tests more frequently. |
@headius this issue should be reopened. In this case, the exception type should be TypeError. on current master(336e527)
|
Current master(252bd4e) works.
|
Hi all!
I saw this was fixed for subtraction and division earlier: #1648, #1633, #1442, #1441
The exception is not caught by a
rescue Exception
and breaks our app.This should probably be covered by a RubySpec?
With MRI 2.1.3:
With JRuby 1.7.16:
The text was updated successfully, but these errors were encountered: