Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-6079

Ineffective null check in FlinkKafkaConsumerBase#open()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: Kafka Connector
    • Labels:
      None

      Description

      Here is related code:

          List<KafkaTopicPartition> kafkaTopicPartitions = getKafkaPartitions(topics);
      
          subscribedPartitionsToStartOffsets = new HashMap<>(kafkaTopicPartitions.size());
      
          if (kafkaTopicPartitions != null) {
      

      Prior to the null check, kafkaTopicPartitions is already dereferenced.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Zentol Chesnay Schepler
                Reporter:
                yuzhihong@gmail.com Ted Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: