Commit cbba9f1
committed
Fix(advisor) : Prevent NPE when conversation ID value is null
- Replace containsKey(..) + toString() with direct get(..) and null check
- Change Assert.noNullElements(keySet().toArray()) to Assert.state(!containsKey(null)) to avoid unnecessary array allocation
Signed-off-by: KoreaNirsa <[email protected]>1 parent d662e57 commit cbba9f1
File tree
1 file changed
+4
-3
lines changed- spring-ai-client-chat/src/main/java/org/springframework/ai/chat/client/advisor/api
1 file changed
+4
-3
lines changedLines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
0 commit comments