Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/MacroStabilityInwardsInputService.cs =================================================================== diff -u -rb13759ad077f9e2b4104de000b5bdeafa9abe358 -rc2b77b22666a09fdc2348440c76cd37325aeba7d --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/MacroStabilityInwardsInputService.cs (.../MacroStabilityInwardsInputService.cs) (revision b13759ad077f9e2b4104de000b5bdeafa9abe358) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/MacroStabilityInwardsInputService.cs (.../MacroStabilityInwardsInputService.cs) (revision c2b77b22666a09fdc2348440c76cd37325aeba7d) @@ -48,6 +48,7 @@ { macroStabilityInwardsInput.StochasticSoilModel = null; } + SyncStochasticSoilProfileWithStochasticSoilModel(macroStabilityInwardsInput); } @@ -68,11 +69,13 @@ macroStabilityInwardsInput.StochasticSoilProfile = macroStabilityInwardsInput.StochasticSoilModel.StochasticSoilProfiles.First(); return; } + if (macroStabilityInwardsInput.StochasticSoilProfile == null || macroStabilityInwardsInput.StochasticSoilModel.StochasticSoilProfiles.Contains(macroStabilityInwardsInput.StochasticSoilProfile)) { return; } } + macroStabilityInwardsInput.StochasticSoilProfile = null; } }