Revision 58528
Added by Andreas Czerniak about 4 years ago
modules/dnet-collector-plugins/trunk/src/main/java/eu/dnetlib/data/collector/plugins/rest/RestIterator.java | ||
---|---|---|
378 | 378 |
log.info("resInt: " + resumptionInt); |
379 | 379 |
if (resumptionInt <= resultTotal) { |
380 | 380 |
nextQuery = baseUrl + "?" + queryParams + querySize + "&" + resumptionParam + "=" + resumptionStr + queryFormat; |
381 |
} else |
|
381 |
} else {
|
|
382 | 382 |
nextQuery = ""; |
383 |
|
|
383 |
if (resumptionType.toLowerCase().equals("deep-cursor")) { resumptionInt -= 1; } // to correct the resumptionInt and prevent a NullPointer Exception at mdStore |
|
384 |
} |
|
384 | 385 |
log.debug("nextQueryUrl: " + nextQuery); |
385 | 386 |
return nextQuery; |
386 | 387 |
|
modules/dnet-collector-plugins/trunk/pom.xml | ||
---|---|---|
7 | 7 |
</parent> |
8 | 8 |
<groupId>eu.dnetlib</groupId> |
9 | 9 |
<artifactId>dnet-collector-plugins</artifactId> |
10 |
<version>1.4.1-SNAPSHOT</version>
|
|
10 |
<version>1.4.2-SNAPSHOT</version>
|
|
11 | 11 |
<scm> |
12 | 12 |
<developerConnection>scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet45/modules/dnet-collector-plugins/trunk</developerConnection> |
13 | 13 |
</scm> |
Also available in: Unified diff
RestCollectorPlugin: prevent NullPointerException at mdStore, v1.4.2-SNAPSHOT