Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1988

MessageDispatcher::sendMessageWithFuture with RequestOptions null

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 3.6.7
    • 3.6.6
    • None

      In MessageDispatcher::sendMessageWithFuture there are some validations to check the case of RequestOptions options being null. However, if one calls that method with a null RequestOptions argument, the execution ends in failure (with a NPE in the resulting future) [1].
      The point is, either the validations are unnecessary and should exist a preconditions check at the beginning of the method, or it should set a (documented) default RequestOptions so the sending can be completed.

      [1] the source of the NPE is UnicastRequest::sendRequest when trying to access the RequestOptions's getMode method.

              rhn-engineering-bban Bela Ban
              matiassm matias sm (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: