From b321b3e25fee809be9cd8ce1a18827e777900ed6 Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Sat, 13 Feb 2016 20:41:57 +0100 Subject: [PATCH] =?UTF-8?q?Opraven=20start=20na=20pr=C3=A1zdn=C3=A9=20data?= =?UTF-8?q?b=C3=A1zi.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/info/bukova/isspst/AppInitListener.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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();