Project

General

Profile

« Previous | Next » 

Revision 54072

fixed bug for list of result(50|) empty

View differences:

modules/dnet-mapreduce-jobs/branches/master/src/main/java/eu/dnetlib/data/mapreduce/hbase/propagation/country/institutionalrepositories/ResultCountryIterator.java
38 38
            } else {
39 39
                while (it.hasNext()) {
40 40

  
41
                    String resultId = Value.fromJson(it.next().toString()).getValue();
41
                    resultId = Value.fromJson(it.next().toString()).getValue();
42 42
                    if (!resultId.startsWith("50|")) {
43 43
                        throw new NotValidResultSequenceException("ERROR ORDERING CHECK");
44 44
                    }
......
65 65
                throw new NotValidResultSequenceException("Second element in reducer is not country");
66 66
            }
67 67
            boolean iterate = true;
68
            resultId = TERMINATOR;
68 69
            while(it.hasNext() && iterate){
69 70
                resultId = Value.fromJson(it.next().toString()).getValue();
70 71
                if (!resultId.startsWith(("50|"))) {

Also available in: Unified diff