Add missing null check up

This commit is contained in:
George Kalampokis 2021-12-07 17:16:22 +02:00
parent de4c430d91
commit 33784f3ee2
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ public class DatasetProfileManager {
if (item instanceof Map) {
return (String) ((Map)item).get("$");
}
return item.toString();
return item != null ? item.toString() : null;
}
public ResponseEntity<byte[]> getDocument(eu.eudat.models.data.user.composite.DatasetProfile datasetProfile, String label) throws IllegalAccessException, IOException, InstantiationException {