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

ASF GitHub Bot commented on KAFKA-8277:
---------------------------------------

rhauch commented on pull request #6550: KAFKA-8277: Fix NPEs in several methods 
of ConnectHeaders
URL: https://github.com/apache/kafka/pull/6550
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Fix NPE in ConnectHeaders
> -------------------------
>
>                 Key: KAFKA-8277
>                 URL: https://issues.apache.org/jira/browse/KAFKA-8277
>             Project: Kafka
>          Issue Type: Bug
>          Components: KafkaConnect
>    Affects Versions: 1.1.0
>            Reporter: Randall Hauch
>            Priority: Major
>             Fix For: 1.1.2, 2.0.2, 2.3.0, 2.1.2, 2.2.1
>
>
> Replace {{headers.isEmpty()}} by calls to {{isEmpty()}} as the latter does a 
> null check on heathers (that is lazily created).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to