JRuby

RaiseException#printStrackTrace doesn't deal well with nil messages

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.1.6
  • Fix Version/s: JRuby 1.2
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

RaiseException, line 189: if message happens to be nil, message.convertToString() on nil will fail with an error. needs to check if message is nil before trying to print message, or make conversion routine more robust (it tries to call to_str on nil, which fails)

Activity

Hide
Thomas E Enebo added a comment -

Fixed in commit 8411. I can see how it may be possible for this to have a nil message, but it would be good to have a real test case for it.

Show
Thomas E Enebo added a comment - Fixed in commit 8411. I can see how it may be possible for this to have a nil message, but it would be good to have a real test case for it.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: