Skip to content

Span.setData / Transaction.setData cause NullPointerException #4224

Closed
@adinauer

Description

@adinauer

Integration

sentry

Java Version

any

Version

v7 + v8

Steps to Reproduce

  • setData(null, "x")
  • setData("x", null)
  • setData(null, null)

all of these cause an NPE

Expected Result

just NoOp in that case (OTel also does that)

we can consider unsetting any current data with the same key, if a null value is set

Actual Result

NPE

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions