Skip to content

Handle exception cause with null message#5146

Merged
kares merged 1 commit intomasterfrom
handle_exception_cause_with_null_message
Apr 25, 2018
Merged

Handle exception cause with null message#5146
kares merged 1 commit intomasterfrom
handle_exception_cause_with_null_message

Conversation

@donv
Copy link
Member

@donv donv commented Apr 23, 2018

The handling of exc exceptions in the jsr223 JRubyEngine assumes that all exceptions have causes, and that the cause has a non-null message. This is not always the case and results in a NullPointerException without the original exception.

I added a test for the two cases I know of.

I noticed that all the other tests for the jsr223 JRubyEngine are disabled. Any reason for that?

@donv donv self-assigned this Apr 23, 2018
@donv donv requested review from enebo and headius April 23, 2018 14:01
@kares kares merged commit d83d15b into master Apr 25, 2018
@kares kares deleted the handle_exception_cause_with_null_message branch April 25, 2018 13:51
@kares kares added this to the JRuby 9.2.0.0 milestone Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants