mirror of
https://github.com/fergalmoran/chrometophone.git
synced 2025-12-22 09:41:51 +00:00
Add check for empty registration id
This commit is contained in:
@@ -97,9 +97,10 @@ public class RegisterServlet extends HttpServlet {
|
||||
}
|
||||
|
||||
String deviceRegistrationId = req.getParameter("devregid");
|
||||
if (deviceRegistrationId == null) {
|
||||
if (deviceRegistrationId == null || "".equals(deviceRegistrationId.trim())) {
|
||||
resp.setStatus(400);
|
||||
resp.getWriter().println(ERROR_STATUS + "(Must specify devregid)");
|
||||
log.severe("Missing registration id ");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user