From b895f6d9f8daedbeb897371080a7c9386b1e91c4 Mon Sep 17 00:00:00 2001 From: eblondel Date: Mon, 25 Nov 2024 16:59:20 +0100 Subject: [PATCH] fix #397 --- R/geoflow_validator.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/geoflow_validator.R b/R/geoflow_validator.R index 295a748..e0b6cf8 100644 --- a/R/geoflow_validator.R +++ b/R/geoflow_validator.R @@ -112,7 +112,7 @@ geoflow_validator_cell <- R6Class("geoflow_validator_cell", #If cell is empty and can be empty it's okay, nothing to validate if(private$na_authorized){ if(is.na(private$str)) return(report) - if(private$str == "") return(report) + if(as(private$str, "character") == "") return(report) } #If cell is empty and should't be empty return a error if(!private$na_authorized){