git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/DataMiner@161995 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
768ea5f212
commit
e921c05101
|
@ -4,6 +4,7 @@ import static org.gcube.resources.discovery.icclient.ICFactory.client;
|
|||
import static org.gcube.resources.discovery.icclient.ICFactory.clientFor;
|
||||
import static org.gcube.resources.discovery.icclient.ICFactory.queryFor;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.gcube.common.encryption.StringEncrypter;
|
||||
|
@ -85,10 +86,9 @@ public class InfrastructureDialoguer {
|
|||
query.setResult("$resource/Profile/Name/text()");
|
||||
DiscoveryClient<String> client = client();
|
||||
List<String> resources = client.submit(query);
|
||||
if (resources==null || resources.size()==0){
|
||||
throw new Exception("No resource named StatisticalManagerAlgorithmPrivate available in scope "+scope);
|
||||
}
|
||||
LOGGER.debug("Found {} algorithms",resources.size());
|
||||
if (resources==null)
|
||||
resources = Collections.emptyList();
|
||||
LOGGER.debug("Found {} private algorithms",resources.size());
|
||||
|
||||
return resources;
|
||||
|
||||
|
|
Loading…
Reference in New Issue