[ 
https://issues.apache.org/jira/browse/KAFKA-1198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13860674#comment-13860674
 ] 

Guozhang Wang commented on KAFKA-1198:
--------------------------------------

1) List option will always get all the topics, only describe option will take 
the topic specification.

2) the getTopics function does not check if opts.topicOpt is specified, and 
hence throws the NullPointerException.

Proposed solution: check topicOpt unless it is the list option.

> NullPointerException in describe topic
> --------------------------------------
>
>                 Key: KAFKA-1198
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1198
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 0.8.1
>            Reporter: Jun Rao
>
> If topic is not specified, we get the following.
> bin/kafka-topics.sh --zookeeper localhost:2181 --describe
> (Error while executing topic command,java.lang.NullPointerException)
> Also, list topic seems to always list all topics even when topics are 
> specified.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to