Handle empty session id in rc emulator
@@ -92,7 +92,11 @@ protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String cmd = req.getParameter("cmd");
- SessionId sessionId = new SessionId(req.getParameter("sessionId"));
+
+ SessionId sessionId = null;
+ if (req.getParameter("sessionId") != null) {
+ sessionId = new SessionId(req.getParameter("sessionId"));
+ }
String[] args = deserializeArgs(req);
if (cmd == null) {
