diff --git a/src/libs/pestpp_common/Localizer.cpp b/src/libs/pestpp_common/Localizer.cpp index d7b3e6a1..bd2a283b 100644 --- a/src/libs/pestpp_common/Localizer.cpp +++ b/src/libs/pestpp_common/Localizer.cpp @@ -896,7 +896,8 @@ void AutoAdaLocThread::work(int thread_id) par_ss = pe_diff.col(jpar) * (1.0 / par_std[jpar]); if (list_obs.size() > 0) { - sobs = list_obs[par_names[jpar]]; // dont use at here - this way, any missing pars just get no obs + if (list_obs.find(par_names[jpar]) != list_obs.end()) + sobs = list_obs[par_names[jpar]]; // dont use at here - this way, any missing pars just get no obs use_list_obs = true; } else