Skip to content

Commit 6138dc0

Browse files
kunna-ujetcolinsurprenant
authored andcommitted
Fix null point exception when ssl_truststore_location is nil (#256)
* Fix null point exception when ssl_truststore_location is nil
1 parent 78a44a8 commit 6138dc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logstash/inputs/kafka.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def create_consumer(client_id)
332332

333333
def set_trustore_keystore_config(props)
334334
props.put("ssl.truststore.type", ssl_truststore_type) unless ssl_truststore_type.nil?
335-
props.put("ssl.truststore.location", ssl_truststore_location)
335+
props.put("ssl.truststore.location", ssl_truststore_location) unless ssl_truststore_location.nil?
336336
props.put("ssl.truststore.password", ssl_truststore_password.value) unless ssl_truststore_password.nil?
337337

338338
# Client auth stuff

0 commit comments

Comments
 (0)