Skip to content
Snippets Groups Projects
Commit de2d8102 authored by Maxime Gosselin's avatar Maxime Gosselin
Browse files

Correction du bug empechant la création de fils

parent 9123191e
Branches
No related tags found
No related merge requests found
......@@ -43,13 +43,15 @@ public class ThreadController extends HttpServlet {
}
}
if(daoThread.findById(idThread) == null){
if(!action.equals("create") && daoThread.findById(idThread) == null){
req.setAttribute("error", "Ne changez pas l'url vous même!");
req.getRequestDispatcher("/WEB-INF/vue/error.jsp").forward(req, resp);
return;
}
Follower follow = new Follower(username, idThread);
System.out.println("action : " + action);
switch (action){
case "follow":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment