Skip to content

Fix string converter null in map#6737

Open
RanVaknin wants to merge 3 commits intomasterfrom
rvaknin/fix-6693-string-converter-null-in-map
Open

Fix string converter null in map#6737
RanVaknin wants to merge 3 commits intomasterfrom
rvaknin/fix-6693-string-converter-null-in-map

Conversation

@RanVaknin
Copy link
Contributor

Fixes #6693

The StringAttributeConverter's convertMap() method throws a NPE when a map contains a NULL AttributeValue. This Happens because Collectors.toMap() does not accept null values because it uses Map.merge() internally which has a different semantic purpose that conflicts with null values.

@RanVaknin RanVaknin requested a review from a team as a code owner February 13, 2026 21:11
@RanVaknin RanVaknin added changelog-not-required Indicate changelog entry is not required for a specific PR no-api-surface-area-change Indicate there is no API surface area change and thus API surface area review is not required labels Feb 13, 2026
@RanVaknin RanVaknin changed the title Rvaknin/fix 6693 string converter null in map Fix string converter null in map Feb 13, 2026
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-not-required Indicate changelog entry is not required for a specific PR no-api-surface-area-change Indicate there is no API surface area change and thus API surface area review is not required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TableSchema.mapToItem throws NullPointerException when converting a map AttributeValue containing NUL to a string field

2 participants