[jboss-jira] [JBoss JIRA] (JGRP-1988) MessageDispatcher::sendMessageWithFuture with RequestOptions null
matias sm (JIRA)
issues at jboss.org
Tue Nov 24 16:00:01 EST 2015
matias sm created JGRP-1988:
-------------------------------
Summary: MessageDispatcher::sendMessageWithFuture with RequestOptions null
Key: JGRP-1988
URL: https://issues.jboss.org/browse/JGRP-1988
Project: JGroups
Issue Type: Enhancement
Affects Versions: 3.6.6
Reporter: matias sm
Assignee: Bela Ban
Priority: Minor
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.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list