spring-projects/spring-integration-aws

Default KinesisClientLibConfiguration causes an NPE in the KCL when `null` is passed as billing mode

sean-madden opened this issue · 2 comments

The KclMessageDrivenChannelAdapter.java:296 attempts to initialize a new KinesisClientLibConfiguration with a null value passed for BillingMode. This causes an NPE in the Kinesis Client Library when attempting to setup the dynamoDB table:
https://github.com/awslabs/amazon-kinesis-client/blob/v1.13.3/src/main/java/com/amazonaws/services/kinesis/leases/impl/LeaseManager.java#L139

I think KinesisClientLibConfiguration.DEFAULT_DDB_BILLING_MODE should be used instead.

Good. Can you consider to contribute a fix on the matter, @sean-madden ?
Thanks

Working on opening a PR right now!