Closed flodel closed 8 months ago
Sorry it is difficult to give a reproducible example… I have encountered a situation where ps_name errors out as it evaluates
if(!is.null(cmdline))
The issue is that cmdline is character(0L) at this point, so it dies evaluating if(NA). Please consider changing the line to
cmdline
character(0L)
if(NA)
if(!is.null(cmdline)) && length(cmdline) > 0L)
?
(I am using version 1.7.4 but see the same code in the current 1.7.5)
IDK how ps_cmdline() could return an empty vector, but yeah, we can defend against that. Do you want to submit a PR?
ps_cmdline()
Yep, probably this weekend. Thanks.
Fixed in #152.
Sorry it is difficult to give a reproducible example… I have encountered a situation where ps_name errors out as it evaluates
if(!is.null(cmdline))
The issue is that
cmdline
ischaracter(0L)
at this point, so it dies evaluatingif(NA)
. Please consider changing the line toif(!is.null(cmdline)) && length(cmdline) > 0L)
?
(I am using version 1.7.4 but see the same code in the current 1.7.5)