Skip to content

[1887] Fix NPE in transport option conversion#1888

Open
baekgyu-kim wants to merge 1 commit intoopensearch-project:mainfrom
baekgyu-kim:1887
Open

[1887] Fix NPE in transport option conversion#1888
baekgyu-kim wants to merge 1 commit intoopensearch-project:mainfrom
baekgyu-kim:1887

Conversation

@baekgyu-kim
Copy link
Contributor

Description

This change prevents NullPointerException in transport option conversion.
ApacheHttpClient5Options.of(...) and RestClientOptions.of(...) now safely handle null input options, headers(), and queryParameters() (treated as empty).
It also adds unit tests for these null cases.

Issues Resolved

This Pull Request resolved the issue #1887

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Baekgyu <baekgyukim.dev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments