Opraven start na prázdné databázi.

master
Josef Rokos 9 years ago
parent cbb81657c8
commit b321b3e25f

@ -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();

Loading…
Cancel
Save