Race condition where clientData$singletons can be NULL

Reproduced in Shiny Server load testing.

Code reviewed by @trestletech
This commit is contained in:
Joe Cheng
2013-12-09 15:51:28 -08:00
parent 46054f513b
commit ac112ea287

View File

@@ -75,7 +75,8 @@ ShinySession <- setRefClass(
observe({
# clientData$singletons tells us what singletons were part of the
# initial page render
singletons <<- strsplit(clientData$singletons, ',')[[1]]
if (!is.null(clientData$singletons))
singletons <<- strsplit(clientData$singletons, ',')[[1]]
})
output <<- .createOutputWriter(.self)