Check if deprecation note exist in Json PUT (#815)

This commit is contained in:
Yi (Alan) Wang 2017-10-23 16:43:06 -07:00 committed by GitHub
parent 094b617976
commit 2e38fff984

View File

@ -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);