Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-20545

Undertow.Server.lookupSecurePort can throw NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 36.0.0.Final
    • None
    • None
    • None

      The unboxing of an Integer at the return statement might result in NPE if the parameter unsecurePort is not registered in the securePortMappings map:

      public int lookupSecurePort(final int unsecurePort) {
              return securePortMappings.get(unsecurePort);
          }
      

              flaviarnn Flavia Rainone
              flaviarnn Flavia Rainone
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: