mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-14 09:16:13 +02:00
Fix For ONOS-5396:Causing NPE:for REST API- GET /applications/{name}
Change-Id: I652f4620a741f64bc71f2555ad801eb00e7c951f
This commit is contained in:
parent
d3a1d64530
commit
da8cb161c8
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user