Skip to content

Commit

Permalink
🙈 respect the non-length of NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Patrick Kyle committed Nov 1, 2019
1 parent 6131677 commit b09c9e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/dash.R
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ Dash <- R6::R6Class(
}

getServerParam <- function(value, type, default) {
if (toupper(value) %in% c("TRUE", "FALSE"))
if (!is.null(value) && toupper(value) %in% c("TRUE", "FALSE"))
value <- as.logical(toupper(value))
if (value != "" && length(value) != 0 && mode(value) == type && !is.na(value)) {
return(value)
Expand Down

0 comments on commit b09c9e5

Please sign in to comment.