Add missing null check up
This commit is contained in:
parent
de4c430d91
commit
33784f3ee2
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue