Commit 108872a
fix: 修复 To.java 中 peekedToken 可能为 null 的问题
在并发场景下,window.peekAndConsume() 可能返回 null,
导致后续调用 peekedToken.finishConsume() 时抛出 NPE。
添加 null 检查以防止此类错误。
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 00337d9 commit 108872a
1 file changed
Lines changed: 3 additions & 1 deletion
File tree
- framework/waterflow/java/waterflow-core/src/main/java/modelengine/fit/waterflow/domain/stream/nodes
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
937 | 937 | | |
938 | 938 | | |
939 | 939 | | |
940 | | - | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
941 | 943 | | |
942 | 944 | | |
943 | 945 | | |
| |||
0 commit comments