Skip to content

Commit 9869784

Browse files
fix: check if prob.f.sys exists before accessing it in remake
1 parent 3cf7743 commit 9869784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/remake.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ function updated_u0_p(
804804
if u0 === missing && p === missing
805805
return state_values(prob), parameter_values(prob)
806806
end
807-
if prob.f.sys === nothing
807+
if has_sys(prob.f) && prob.f.sys === nothing
808808
if interpret_symbolicmap && eltype(p) !== Union{} && eltype(p) <: Pair
809809
throw(ArgumentError("This problem does not support symbolic maps with " *
810810
"`remake`, i.e. it does not have a symbolic origin. Please use `remake`" *

0 commit comments

Comments
 (0)