Skip to content
Snippets Groups Projects
Commit 0729e20e authored by Felix Sidokhine's avatar Felix Sidokhine
Browse files

fixed issue at installation

parent fad513dc
No related branches found
No related tags found
No related merge requests found
......@@ -46,9 +46,7 @@ public class StartInstallServlet extends HttpServlet {
//This is the ONLY case where we write directy to the DB
@Override
protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
StatementList statementList = new StatementList();
statementList.setStatements(null);
if(dataStore.getUserDao().getObjects(statementList).size() != 0){
if(dataStore.getUserDao().getObjects(null).size() != 0){
resp.sendError(500,"We have tried to create an administrative account where one already exists!");
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment