Commit 8f9fa49
committed
fix: fix possible
For `InitializationProblem`s `state_values(prob)` can return `nothing`,
so calls like `remake_buffer(prob, state_values(prob), keys(u0), values(u0))`
would lead to `StackOverflowError`s due to the fallback for the deprecated `Dict` method.
This can crash julia if depwarns are enabled.StackOverflowErrors for remake_buffer & InitializationProblems1 parent 1e08e11 commit 8f9fa49
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
0 commit comments