Commit c553769
committed
fix(sdk): guard against null output in wait token timeout error
When a waitpoint token times out but has no output payload (output=null
in the DB), data is undefined. Accessing data.message throws a
TypeError that crashes the runtime before the timeout error is returned
to the caller.
Use optional chaining with a fallback message to match the pattern
already used in sharedRuntimeManager for the same scenario.1 parent 90e8bd5 commit c553769
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
| 272 | + | |
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| |||
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
618 | | - | |
| 618 | + | |
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
| |||
0 commit comments