Skip to content

Commit

Permalink
Merge pull request #291 from edoweb/FRL-168
Browse files Browse the repository at this point in the history
add additional check, if identifier is not provided as an array
  • Loading branch information
jschnasse authored Jul 4, 2019
2 parents 0f9f282 + e10a8b1 commit caa7623
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/helper/oai/WglMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,13 @@ private List<String> getList(JsonNode n, String string) {
private String getString(JsonNode n, String string) {
StringBuffer result = new StringBuffer();
JsonNode a = n.at(string);
for (JsonNode item : a) {
String str = item.asText("no Value found");
result.append(str + " ,");
if (a.isArray()) {
for (JsonNode item : a) {
String str = item.asText("no Value found");
result.append(str + " ,");
}
} else {
result.append(a.asText());
}
if (result.length() == 0)
return null;
Expand Down

0 comments on commit caa7623

Please sign in to comment.