Skip to content
Snippets Groups Projects
Commit f47c2834 authored by Stefan E. Funk's avatar Stefan E. Funk
Browse files

fix: catching NoSuchElementException in metsmodsmapping module

parent c446fe0f
No related branches found
No related tags found
No related merge requests found
Pipeline #317392 passed
......@@ -581,7 +581,7 @@ public class OAIPMHUtilities {
String id = prefix[1];
if (IDENTIFIER_PREFIXES_TO_FILTER.contains(px)) {
result = id;
log.fine("incoming id has been filtered to: " + result);
log.fine("incoming id " + id + " has been filtered to: " + result);
}
}
......
......@@ -3,6 +3,7 @@ package info.textgrid.middleware;
import java.io.IOException;
import java.io.StringReader;
import java.text.ParseException;
import java.util.NoSuchElementException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
......@@ -144,7 +145,7 @@ public class RecordDelivererIDIOM extends RecordDelivererAbstract {
this.record.setMetadata(idiomMets(metsmods));
} catch (JSONException | ParserConfigurationException | SAXException | IOException
| ParseException e) {
| ParseException | NoSuchElementException e) {
log.severe("error! " + e.getClass().getName() + ": " + e.getMessage());
// TODO Auto-generated catch block
e.printStackTrace();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment