--- android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/TimetableServlet.java 2012/05/08 10:16:50 1800 +++ android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/TimetableServlet.java 2012/05/09 17:23:50 1801 @@ -45,11 +45,11 @@ @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { - if (request.getParameter("train") == null) { + if (request.getParameter("train") == null || request.getParameter("train").equals("") ) { response.sendError(400, "not enough parameters (train)"); return; } - if (request.getParameter("type") == null) { + if (request.getParameter("type") == null || request.getParameter("type").equals("") ) { response.sendError(400, "not enough parameters (type)"); return; }