MINA
  1. MINA
  2. DIRMINA-746

DefaultSocketSessionConfig.setReceiveBufferSize(...) throws NullPointerException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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)

        Activity

        Linus Zetterlund created issue -
        Emmanuel Lecharny made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0.0-RC2 [ 12313767 ]
        Resolution Fixed [ 1 ]
        Emmanuel Lecharny made changes -
        Fix Version/s 2.0.0 [ 12313701 ]
        Fix Version/s 2.0.0-RC2 [ 12313767 ]
        Emmanuel Lecharny made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development