Fixed NPE when closing RestServer
@@ -140,8 +140,10 @@ public class RestServer {
public void shutdown() {
server.stop();
+ if(elasticsearchProxyResource != null) {
elasticsearchProxyResource.close();
}
+ }
private void enableCORS(final String origin, final String methods) {
