Skip to content

Conversation

@Artur-
Copy link
Member

@Artur- Artur- commented Jan 30, 2026

Fixes #22646

JacksonUtils.writeValue() now explicitly handles null values by returning a proper NullNode, matching the behavior of similar methods like JacksonSerializer.toJson() and JacksonCodec.encodeWithoutTypeInfo(). This ensures ReactAdapterComponent.setState(name, null) sends an actual JSON null to the client instead of the string "null".

Fixes #22646

JacksonUtils.writeValue() now explicitly handles null values by
returning a proper NullNode, matching the behavior of similar methods
like JacksonSerializer.toJson() and JacksonCodec.encodeWithoutTypeInfo().
This ensures ReactAdapterComponent.setState(name, null) sends an actual
JSON null to the client instead of the string "null".
@Artur- Artur- marked this pull request as ready for review January 30, 2026 19:06
@sonarqubecloud
Copy link

@github-actions
Copy link

Test Results

1 345 files  ± 0  1 345 suites  ±0   1h 17m 22s ⏱️ +8s
9 490 tests + 3  9 422 ✅ + 3  68 💤 ±0  0 ❌ ±0 
9 944 runs   - 12  9 868 ✅  - 12  76 💤 ±0  0 ❌ ±0 

Results for commit 4ce6a64. ± Comparison against base commit 9de7d19.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ReactAdapterElement/ReactAdapterComponent: set string state to null not working probably

3 participants