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:
parent
b15ba30b1d
commit
559251fe2f
|
@ -94,8 +94,11 @@ public abstract class SoBigDataHarvester extends BasicHarvester {
|
||||||
|
|
||||||
for(int i=1; i<contexts.getLength()-1; i++){
|
for(int i=1; i<contexts.getLength()-1; i++){
|
||||||
Node context = contexts.item(i);
|
Node context = contexts.item(i);
|
||||||
String contextToExclude = context.getChildNodes().item(0).getNodeValue();
|
NodeList nList = context.getChildNodes();
|
||||||
excludedContexts.add(contextToExclude);
|
if(nList.item(0)!=null) {
|
||||||
|
String contextToExclude = nList.item(0).getNodeValue();
|
||||||
|
excludedContexts.add(contextToExclude);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return excludedContexts;
|
return excludedContexts;
|
||||||
|
|
Loading…
Reference in New Issue