minor fix for uri resolver property (when it is missing)

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@139924 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-12-12 16:04:21 +00:00
parent 1bc3ae3673
commit ad7fd86acc
1 changed files with 4 additions and 2 deletions

View File

@ -213,7 +213,8 @@ public class DataCatalogueRunningCluster {
sysAdminToken = StringEncrypter.getEncrypter().decrypt(sysAdminToken);
// retrieve URL_RESOLVER
urlResolver = accessPoint.propertyMap().get(URL_RESOLVER).value();
if(accessPoint.propertyMap().containsKey(URL_RESOLVER))
urlResolver = accessPoint.propertyMap().get(URL_RESOLVER).value();
// break now
break;
@ -250,7 +251,8 @@ public class DataCatalogueRunningCluster {
}
// retrieve URL_RESOLVER
urlResolver = accessPoint.propertyMap().get(URL_RESOLVER).value();
if(accessPoint.propertyMap().containsKey(URL_RESOLVER))
urlResolver = accessPoint.propertyMap().get(URL_RESOLVER).value();
}
}
}