Commit 608c6543 authored by Dorchies David's avatar Dorchies David
Browse files

fix: crash of ConvertMeteoSD with null area upstream nodes

Fix #89
Showing with 1 addition and 1 deletion
+1 -1
...@@ -26,7 +26,7 @@ ConvertMeteoSD.GRiwrm <- function(x, meteo, ...) { ...@@ -26,7 +26,7 @@ ConvertMeteoSD.GRiwrm <- function(x, meteo, ...) {
#' @export #' @export
#' @rdname ConvertMeteoSD #' @rdname ConvertMeteoSD
ConvertMeteoSD.character <- function(x, griwrm, meteo, ...) { ConvertMeteoSD.character <- function(x, griwrm, meteo, ...) {
upperBasins <- !is.na(griwrm$down) & griwrm$down == x upperBasins <- !is.na(griwrm$down) & griwrm$down == x & !is.na(griwrm$area)
if(all(!upperBasins)) { if(all(!upperBasins)) {
return(meteo[,x]) return(meteo[,x])
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment