if(StringUtils.isEmpty(reqContent))
{
LOGGER.error("ServiceGatewayImpl createService reqContent is null.");
- return null;
+ throw new ServiceException("ServiceGatewayImpl createService reqContent is null.");
}
// Parse request
*/
@Override
public void deleteService(String serviceId, HttpServletRequest httpRequest) throws ServiceException {
+ if(httpRequest == null)
+ {
+ LOGGER.error("ServiceGatewayImpl.deleteService httpRequest is null");
+ throw new ServiceException("ServiceGatewayImpl.deleteService httpRequest is null");
+ }
// Parse request
String reqContent = RestUtils.getRequestBody(httpRequest);
Map<String, Object> requestBody = JsonUtil.unMarshal(reqContent, Map.class);