diff --git a/src/main/java/info/bukova/isspst/AppInitListener.java b/src/main/java/info/bukova/isspst/AppInitListener.java index 5a1b2c72..2f021cc8 100644 --- a/src/main/java/info/bukova/isspst/AppInitListener.java +++ b/src/main/java/info/bukova/isspst/AppInitListener.java @@ -18,6 +18,7 @@ import info.bukova.isspst.services.munits.MUnitService; import info.bukova.isspst.services.numberseries.NumberSeriesService; import info.bukova.isspst.services.requirement.RequirementTypeService; import info.bukova.isspst.services.settings.GlobalSettingsService; +import info.bukova.isspst.services.settings.SeasonException; import info.bukova.isspst.services.settings.SeasonService; import info.bukova.isspst.services.users.PermissionService; import info.bukova.isspst.services.users.RoleService; @@ -307,7 +308,12 @@ public class AppInitListener implements ServletContextListener { private void checkNumberSeries() { - Season season = seasonService.getActive(); + Season season; + try { + season = seasonService.getActive(); + } catch (SeasonException e) { + season = null; + } if (season == null) { season = new Season();