Fixing bug

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/Common/resource-registry-handlers@147255 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-04-28 14:54:29 +00:00
parent 9632747a0f
commit ac9d29e413
1 changed files with 2 additions and 1 deletions

View File

@ -254,7 +254,8 @@ public class EServiceManager extends ApplicationLifecycleHandler {
ResourceRegistryPublisher resourceRegistryPublisher) {
HostingNode hostingNode = applicationContext.container().properties().lookup(Constants.HOSTING_NODE_PROPERTY).value(HostingNode.class);
addHostingNodeToCurrentContext();
if (hostingNode != null) {
ResourceRegistryClient resourceRegistryClient = ResourceRegistryClientFactory.create();