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

Catch JSONException, if “identifier“ not found

parent b6551cf1
No related branches found
No related tags found
No related merge requests found
......@@ -403,10 +403,11 @@ public class OAIPMHUtilities {
System.out.println("argl: " + fieldPathForESIndex[i]);
try {
fieldResulsts.add(resultFromGetRequestInES.get(fieldPathForESIndex[i]).toString());
Object resultiDingsda = resultFromGetRequestInES.get(fieldPathForESIndex[i]);
fieldResulsts.add(resultiDingsda.toString());
} catch (JSONException e) {
System.out.println("JSON ERROR: " + e.getMessage());
System.out.println("IGNORING JSON ERROR: " + e.getMessage());
}
} else {
......
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