From 5883b50a7ee8c9ab3b345c899bc94a154d6c722a Mon Sep 17 00:00:00 2001 From: eblondel Date: Thu, 30 May 2024 17:12:18 +0200 Subject: [PATCH] troubleshooting ncml handler --- R/geoflow_entity.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/geoflow_entity.R b/R/geoflow_entity.R index d78b2cb7..3c528196 100644 --- a/R/geoflow_entity.R +++ b/R/geoflow_entity.R @@ -430,6 +430,7 @@ geoflow_entity <- R6Class("geoflow_entity", if(!data_object$sourceType %in% c("dbtable", "dbquery", "dbview")) for(i in 1:length(data_object$source)){ datasource <- data_object$source[[i]] + if(is.null(datasource)) next; datasource_parts <- unlist(strsplit(datasource, "\\.(?=[^\\.]+$)", perl=TRUE)) if(length(datasource_parts)<2)if(data_object$sourceType != "nc") stop("Source data file should include a file extension") datasource_name <- datasource_parts[1]