Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] MapToList processor throws NPE when input map contains null values #5341

Closed
oeyh opened this issue Jan 16, 2025 · 0 comments · Fixed by #5342
Closed

[BUG] MapToList processor throws NPE when input map contains null values #5341

oeyh opened this issue Jan 16, 2025 · 0 comments · Fixed by #5342
Assignees
Labels
bug Something isn't working untriaged

Comments

@oeyh
Copy link
Collaborator

oeyh commented Jan 16, 2025

Describe the bug
MapToList processor throws NPE when input map contains null values

To Reproduce
For example, if the input data is:

  {
    "my-map": {
      "key1": "value1",
      "key2": null
    }
  }

and processor config is:

    - map_to_list:
        source: "my-map"
        target: "my-list"

or

    - map_to_list:
        source: "my-map"
        target: "my-list"
        convert_field_to_list: true

It will throw NPE.

Expected behavior
Processor should be able to process the record without errors.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: [e.g. Ubuntu 20.04 LTS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
Development

Successfully merging a pull request may close this issue.

1 participant