Jayasree Ghosh

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

Change-Id: I652f4620a741f64bc71f2555ad801eb00e7c951f
......@@ -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);
}
......