You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tubemq.apache.org by "Guo Jiwei (Jira)" <ji...@apache.org> on 2020/04/08 10:54:00 UTC
[jira] [Assigned] (TUBEMQ-59) Null pointer exception is thrown
while constructing ConsumerConfig with MasterInfo, while directly using
String is ok
[ https://issues.apache.org/jira/browse/TUBEMQ-59?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guo Jiwei reassigned TUBEMQ-59:
-------------------------------
Assignee: Guo Jiwei
> Null pointer exception is thrown while constructing ConsumerConfig with MasterInfo, while directly using String is ok
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: TUBEMQ-59
> URL: https://issues.apache.org/jira/browse/TUBEMQ-59
> Project: Apache TubeMQ
> Issue Type: Bug
> Reporter: Mark Law
> Assignee: Guo Jiwei
> Priority: Normal
> Labels: bug
>
> String masterHostAndPorts = "..."
> ConsumerConfig consumerConfig = new ConsumerConfig(localIp, masterHostAndPorts, consumerGroup);
> The above is running fine without exception.
> String masterHostAndPorts = "..."
> MasterInfo masterInfo = new MasterInfo(masterHostAndPorts);
> ConsumerConfig consumerConfig = new ConsumerConfig(localIp, masterInfo, consumerGroup);
> However, If I use MasterInfo to construct ConsumerConfig, A NPE will be thrown.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)