flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-6079) Ineffective null check in FlinkKafkaConsumerBase#open()
Date Thu, 16 Mar 2017 14:58:41 GMT
Ted Yu created FLINK-6079:
-----------------------------

             Summary: Ineffective null check in FlinkKafkaConsumerBase#open()
                 Key: FLINK-6079
                 URL: https://issues.apache.org/jira/browse/FLINK-6079
             Project: Flink
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


Here is related code:
{code}
    List<KafkaTopicPartition> kafkaTopicPartitions = getKafkaPartitions(topics);

    subscribedPartitionsToStartOffsets = new HashMap<>(kafkaTopicPartitions.size());

    if (kafkaTopicPartitions != null) {
{code}
Prior to the null check, kafkaTopicPartitions is already dereferenced.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message