Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-746

DefaultSocketSessionConfig.setReceiveBufferSize(...) throws NullPointerException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-RC1
    • Fix Version/s: 2.0.0
    • Component/s: Core
    • Labels:
      None

      Description

      I tried to use DefaultSocketSessionConfig to store socket options to be applied to an acceptor that is created at a later stage, and noticed that
      a NullPointerException is thrown if setReceiveBufferSize(...) is called before init(IoService parent) is called.
      If this is the intended behaviour, it looks like a DefaultSocketSessionConfig is created without init(...) being called in:
      NioSocketConnector(Class<? extends IoProcessor<NioSession>> processorClass, int processorCount)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              linus Linus Zetterlund
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: