JRuby (please use github issues at http://bugs.jruby.org)
  1. JRuby (please use github issues at http://bugs.jruby.org)
  2. JRUBY-3257

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

          • Assignee:
            Thomas E Enebo
            Reporter:
            Jan Berkel
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: