Code redesign

Refs #11756: Refactor DataHArvesterPlugin to support scheduled execution from smart-executor 

Task-Url: https://support.d4science.org/issues/11756

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-dashboard-harvester-se-plugin@167645 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2018-05-21 13:56:52 +00:00
parent b15ba30b1d
commit 559251fe2f
1 changed files with 5 additions and 2 deletions

View File

@ -94,8 +94,11 @@ public abstract class SoBigDataHarvester extends BasicHarvester {
for(int i=1; i<contexts.getLength()-1; i++){
Node context = contexts.item(i);
String contextToExclude = context.getChildNodes().item(0).getNodeValue();
excludedContexts.add(contextToExclude);
NodeList nList = context.getChildNodes();
if(nList.item(0)!=null) {
String contextToExclude = nList.item(0).getNodeValue();
excludedContexts.add(contextToExclude);
}
}
return excludedContexts;