When try to call /v1.0/applications/{id}, where id is an undefined application, ApplicationService returns a NullPointerexception. Following the relevant part of the stacktrace:
...
java.lang.NullPointerException
at it.infn.ct.futuregateway.apiserver.v1.ApplicationService.getAppDetails(ApplicationService.java:76)
...