Project

General

Profile

« Previous | Next » 

Revision 61317

Added by Andreas Czerniak over 2 years ago

avoid expection in RestIterator

View differences:

modules/dnet-collector-plugins/trunk/src/main/java/eu/dnetlib/data/collector/plugins/rest/RestIterator.java
348 348
        }
349 349

  
350 350
        try {
351
            if (resultTotal == -1) {
351
            String resultTotalXpathEval = xprResultTotalPath.evaluate(resultNode);
352
            log.debug("resInt: " +resumptionInt + "; resultTotal: " + resultTotal + " ; resultTotalXpath eval.: " + resultTotalXpathEval);
353
            if ((resultTotal == -1) && (!resultTotalXpathEval.isEmpty())) {
352 354
                resultTotal = Integer.parseInt(xprResultTotalPath.evaluate(resultNode));
353 355
                if (resumptionType.toLowerCase().equals("page") && !AUTHBASIC.equalsIgnoreCase(authMethod)) {
354 356
                    resultTotal += 1;
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.5.17-SNAPSHOT</version>
10
	<version>1.5.18-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