Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

NPE not being caught or is printing out for no reason #1485

Closed
enebo opened this Issue · 1 comment

1 participant

@enebo
Owner

spec/java_integration/extenstions/kernel_spec.rb used to raise a NPE as a test to make sure it can be caught and it does not fail but we proceed to see the stacktrace getting printed out anyways. I changed this test to use AIOOBE and it went away. Original code is:

lambda { raise NullPointerException.new }.should raise_error(NullPointerException)
@enebo enebo added this to the JRuby 1.7.11 milestone
@enebo enebo added the core label
@enebo
Owner

Someone must have been debugging something in Proc and left an extra catch for NPE in it.

@enebo enebo closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.