Ignore:
Timestamp:
06/11/13 11:09:44 (11 years ago)
Author:
oschonef
Message:
  • just skip empty <compression> elements or unsupported compression methods within Identify response
File:
1 edited

Legend:

Unmodified
Added
Removed
  • OAIHarvester/trunk/OAIHarvester/src/main/java/eu/clarin/cmdi/oai/harvester/impl/Response.java

    r3011 r3014  
    331331            try {
    332332                result = readString(contentRequired);
    333                 if (!contentRequired && (result == null)) {
    334                     result = "";
    335                 }
    336333            } catch (XMLStreamException e) {
     334                e.printStackTrace();
    337335                StringBuilder sb = new StringBuilder();
    338336                sb.append("element '");
    339337                sb.append(new QName(namespaceURI, localName));
    340                 sb.append(localName).append("' may not be empty");
     338                sb.append("' may not be empty");
    341339                throw new XMLStreamException(sb.toString(), e.getLocation());
    342340            }
     
    384382            if (s != null) {
    385383                sb.append(s);
     384            }
     385            if (!reader.hasNext()) {
     386                break;
    386387            }
    387388            reader.next();
Note: See TracChangeset for help on using the changeset viewer.