diff --git a/src/main/java/eu/dnetlib/openaire/usermanagement/EditRegisteredService.java b/src/main/java/eu/dnetlib/openaire/usermanagement/EditRegisteredService.java index 701edff..f5ccd86 100644 --- a/src/main/java/eu/dnetlib/openaire/usermanagement/EditRegisteredService.java +++ b/src/main/java/eu/dnetlib/openaire/usermanagement/EditRegisteredService.java @@ -58,7 +58,7 @@ public class EditRegisteredService extends HttpServlet { response.sendRedirect("./registeredServices"); } - if (serviceId == null || serviceId.isEmpty()) { + if (serviceId == null || serviceId.isEmpty()) { //TODO WRONG MESSAGE request.getSession().setAttribute("message", "Service with id " + serviceId + " does not exist."); } diff --git a/src/main/java/eu/dnetlib/openaire/usermanagement/utils/RegisteredServicesUtils.java b/src/main/java/eu/dnetlib/openaire/usermanagement/utils/RegisteredServicesUtils.java index bdf8166..946d6ce 100644 --- a/src/main/java/eu/dnetlib/openaire/usermanagement/utils/RegisteredServicesUtils.java +++ b/src/main/java/eu/dnetlib/openaire/usermanagement/utils/RegisteredServicesUtils.java @@ -30,7 +30,7 @@ public class RegisteredServicesUtils { System.out.println("I AM HERE...."); RegisteredService registeredService = registeredServiceDao.fetchRegisteredServiceById(id); if (registeredService == null) { - return true; //no harm in accessing nothing + return false; //no harm in accessing nothing } System.out.println("....and HERE"); System.out.println(registeredService.getAai_id());