Jetty
  1. Jetty
  2. JETTY-1465

null exception in toString() in org.eclipse.jetty.server.handler.ContextHandler.java

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 7.5.4
    • Fix Version/s: 7.6.0
    • Component/s: Eclipse
    • Labels:
      None
    • Environment:
      1.6.0_22 17.1-b03 Java HotSpot(TM) Client VM
    • Number of attachments :
      0

      Description

      In function toString() of org.eclipse.jetty.server.handler.ContextHandler.java
      There is line:
      String p = getClass().getPackage().getName();
      If getPackage() return null function toString() throw NULL exception
      I think it should by something like this:
      String p = (getClass().getPackage()!=null)?(getClass().getPackage().getName()):(null);

        Activity

        Hide
        Jan Bartel added a comment -

        Fixed.

        Show
        Jan Bartel added a comment - Fixed.

          People

          • Assignee:
            Jan Bartel
            Reporter:
            Tom Kuj
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: