Index: dam engine/trunk/src/Deltares.DamEngine.Interface/FillXmlInputFromDam.cs =================================================================== diff -u -r548 -r551 --- dam engine/trunk/src/Deltares.DamEngine.Interface/FillXmlInputFromDam.cs (.../FillXmlInputFromDam.cs) (revision 548) +++ dam engine/trunk/src/Deltares.DamEngine.Interface/FillXmlInputFromDam.cs (.../FillXmlInputFromDam.cs) (revision 551) @@ -65,6 +65,13 @@ { throw new NullReferenceException("No locations defined in this project"); } + foreach (Location location in damProjectData.Dike.Locations) + { + if (location.Scenarios == null) + { + throw new NullReferenceException("No scenarios defined in location"); + } + } if (damProjectData.Dike.SurfaceLines2 == null) { throw new NullReferenceException("No surfacelines defined in this project");