Fix For ONOS-5396:Causing NPE:for REST API- GET /applications/{name}

Change-Id: I652f4620a741f64bc71f2555ad801eb00e7c951f
This commit is contained in:
Jayasree Ghosh 2016-09-28 07:55:55 +05:30
parent d3a1d64530
commit da8cb161c8

View File

@ -78,7 +78,7 @@ public class ApplicationsWebResource extends AbstractWebResource {
@Path("{name}")
public Response getApp(@PathParam("name") String name) {
ApplicationAdminService service = get(ApplicationAdminService.class);
ApplicationId appId = service.getId(name);
ApplicationId appId = nullIsNotFound(service.getId(name), APP_NOT_FOUND);
return response(service, appId);
}