Skip to content

Conversation

@remeio
Copy link
Contributor

@remeio remeio commented Aug 7, 2025

We can use Optional to check null, otherwise we will have too many null check. And avoid NPE.

In the code design, we have too many nested levels, Optional is a good choice.

@remeio remeio force-pushed the polish_null_check branch from 6602220 to 80f2fa9 Compare August 7, 2025 16:00
@sobychacko sobychacko added this to the 1.1.0.M1 milestone Aug 8, 2025
@sobychacko sobychacko merged commit 27b09fe into spring-projects:main Aug 8, 2025
2 checks passed
spring-builds pushed a commit that referenced this pull request Aug 8, 2025
Fixes #4063

Signed-off-by: Mengqi Xu <[email protected]>
(cherry picked from commit 27b09fe)
tzolov pushed a commit to tzolov/spring-ai that referenced this pull request Aug 17, 2025
scionaltera pushed a commit to scionaltera/spring-ai that referenced this pull request Sep 3, 2025
chedim pushed a commit to couchbaselabs/spring-ai that referenced this pull request Sep 19, 2025
Willam2004 pushed a commit to Willam2004/spring-ai that referenced this pull request Oct 11, 2025
Fixes spring-projects#4063

Auto-cherry-pick to 1.0.x

Signed-off-by: Mengqi Xu <[email protected]>
Signed-off-by: 家娃 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants