Title: Span.setData / Transaction.setData cause NullPointerException · Issue #4224 · getsentry/sentry-java · GitHub
Open Graph Title: Span.setData / Transaction.setData cause NullPointerException · Issue #4224 · getsentry/sentry-java
X Title: Span.setData / Transaction.setData cause NullPointerException · Issue #4224 · getsentry/sentry-java
Description: 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 unset...
Open Graph Description: 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 (OT...
X Description: 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 N...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/4224
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Span.setData / Transaction.setData cause NullPointerException","articleBody":"### Integration\n\nsentry\n\n### Java Version\n\nany\n\n### Version\n\nv7 + v8\n\n### Steps to Reproduce\n\n- setData(null, \"x\")\n- setData(\"x\", null)\n- setData(null, null)\n\nall of these cause an NPE\n\n### Expected Result\n\njust NoOp in that case (OTel also does that)\n\nwe can consider unsetting any current data with the same key, if a `null` value is set\n\n### Actual Result\n\nNPE","author":{"url":"https://github.com/adinauer","@type":"Person","name":"adinauer"},"datePublished":"2025-03-04T09:51:20Z","url":"https://github.com/getsentry/sentry-java/issues/4224"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4db86f92-a77c-a287-90c6-9a433a9dad1d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B9C4:1A4796:24B928:33E1BD:6B046963 |
| html-safe-nonce | 6efac469b54a8494adfcffd59226d2482dec6ed60de40c9b6f9cf2e9ffeb2d51 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUM0OjFBNDc5NjoyNEI5Mjg6MzNFMUJEOjZCMDQ2OTYzIiwidmlzaXRvcl9pZCI6IjMxNDI2NjkwMzE1OTc5NTk1MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9c7a6ec5f378ce944e79e58554d1cd27267045806dc105f8b67d745db09f4ebf |
| hovercard-subject-tag | issue:2893625916 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/4224/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3b1e92212c7138356e023db0b6ff3be4eb6c5ce4b83df02be58e280c9d22bb03/getsentry/sentry-java/issues/4224 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3b1e92212c7138356e023db0b6ff3be4eb6c5ce4b83df02be58e280c9d22bb03/getsentry/sentry-java/issues/4224 |
| og:image:alt | 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 (OT... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | adinauer |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width