Null check too late in sun.net.httpserver.ServerImpl

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: core-libs
    • None
    • b103

        HttpServer/ServerImpl.java:377-381:

        Notice the null check on ‘chan’ is performed after it may have been dereferenced to set the TCP_NODELAY on the channel’s socket. If chan truly can be null at that point, the check needs to be move up a few lines.

              Assignee:
              Mark Sheppard
              Reporter:
              Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: