From a4bb59cbd095b6f688263dd76abd8fe77b010510 Mon Sep 17 00:00:00 2001 From: Emmanuel Blondel Date: Thu, 9 Mar 2023 14:46:16 +0100 Subject: [PATCH] Update entity_handler_dataverse.R --- inst/metadata/entity/entity_handler_dataverse.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inst/metadata/entity/entity_handler_dataverse.R b/inst/metadata/entity/entity_handler_dataverse.R index 1bce0ac6..fb753dc0 100644 --- a/inst/metadata/entity/entity_handler_dataverse.R +++ b/inst/metadata/entity/entity_handler_dataverse.R @@ -117,7 +117,7 @@ handle_entities_dataverse <- function(config, source, handle = TRUE){ #license / terms of use rights <- geoflow::geoflow_right$new() - if(ds$termsOfUse == "license") { + if(!is.null(ds$termsOfUse)) if(ds$termsOfUse == "license") { rights$setKey("useConstraint") rights$setValues(ds$termsOfUse) if(!is.null(ds$license)) if(ds$license != "NONE") {