diff --git a/src/remake.jl b/src/remake.jl index 5979cda2e..d041793ba 100644 --- a/src/remake.jl +++ b/src/remake.jl @@ -187,6 +187,9 @@ function remake(prob::ODEProblem; f = missing, if !lazy_initialization u0, p, _ = get_initial_values( prob, prob, prob.f, OverrideInit(), Val(isinplace(prob))) + if isempty(u0) + u0 = nothing + end @reset prob.u0 = u0 @reset prob.p = p end