Commit 00bd64a
fix: avoid NPE in ChartRenderer when chart type is null (#9111)
## Summary
- Fixes NPE in `ChartRenderer.applyAxisDefaults` when chart type is not
set (data-only update without configuration). `Set.of().contains(null)`
throws NPE; added null guard to treat unset type as default (line chart
with category axis).
- Found during a DX test.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 3edbbba commit 00bd64a
2 files changed
Lines changed: 18 additions & 1 deletion
File tree
- vaadin-ai-components-flow-parent/vaadin-ai-components-flow/src
- main/java/com/vaadin/flow/component/ai/chart
- test/java/com/vaadin/flow/component/ai/chart
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
485 | 502 | | |
486 | 503 | | |
487 | 504 | | |
| |||
0 commit comments