Commit 50a60e2d authored by Hakim Ouhida's avatar Hakim Ouhida
Browse files

fixed a bug on history

parent c9e59d29
......@@ -100,7 +100,7 @@ public class LookupHistory extends HttpServlet {
HttpSession session = request.getSession(true);
HashMap<Integer, History> histories = (HashMap<Integer, History>) session.getAttribute("history");
int id = Integer.parseInt(request.getParameter("story_id"));
if (session.getAttribute("username") == null) {
if (histories.get(id) == null) {
histories.put(id, new History());
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment