mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-25 17:08:29 +00:00
Check if deprecation note exist in Json PUT (#815)
This commit is contained in:
parent
094b617976
commit
2e38fff984
@ -167,7 +167,7 @@ public class Dataset extends Controller {
|
||||
|
||||
boolean deprecated = record.get("deprecated").asBoolean();
|
||||
|
||||
String deprecationNote = record.get("deprecationNote").asText();
|
||||
String deprecationNote = record.has("deprecationNote") ? record.get("deprecationNote").asText() : null;
|
||||
|
||||
String urn = getDatasetUrnByIdOrCache(datasetId);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user