From ce8261f629a74e3cfd41457d78553186854a3119 Mon Sep 17 00:00:00 2001 From: ulrich Date: Sun, 05 Feb 2017 16:38:50 +0000 Subject: [PATCH] Rollen des admin geaendert --- src/java/de/uhilger/um/web/Initialiser.java | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/java/de/uhilger/um/web/Initialiser.java b/src/java/de/uhilger/um/web/Initialiser.java index 1895344..0feeecd 100644 --- a/src/java/de/uhilger/um/web/Initialiser.java +++ b/src/java/de/uhilger/um/web/Initialiser.java @@ -131,6 +131,9 @@ User admin = new User(); admin.setId("admin"); admin.setPw("admin"); + admin.setFirstName("admin"); + admin.setLastName("admin"); + admin.setEmail("none"); UserMgr um = new UserMgr(); um.setServletContext(servletContext); um.createUser(admin); @@ -144,7 +147,7 @@ private boolean dbVorhanden(PersistenceManager pm, String sql) { boolean istVorhanden = false; List<List<String>> list = pm.select(sql, Record.WITHOUT_BLOBS); - if(list.size() > 1) { + if(list != null && list.size() > 1) { istVorhanden = true; logger.fine("Datenbank ist vorhanden"); } -- Gitblit v1.9.3