You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The call to REXPGenericVector#toDebugString() or REXPList#toDebugString() may potentially throw a NullPointerException if the vector/list contains a null element. This can occur in some circumstances if an evaluation for source(...) is called on a script which contains function definitions.
For example, if i call .eval("source('myScript.R')") where myScript.R contains a simple function definition:
foo <- function(bar) {
return(bar)
}
The REXP output will be an instance of REXPGenericVector containing an RList payload with two items: item0 is null, and item1 is a logical value.
For our use-case, it is quite common to source an ad-hoc library of functions to be used as part of an Rserve session, but when debugging, it falls over. Would it be possible to put in a null-check into toDebugString() in REXP classes which need to iterate over a list payload?
The text was updated successfully, but these errors were encountered:
The call to
REXPGenericVector#toDebugString()
orREXPList#toDebugString()
may potentially throw aNullPointerException
if the vector/list contains a null element. This can occur in some circumstances if an evaluation forsource(...)
is called on a script which contains function definitions.For example, if i call
.eval("source('myScript.R')")
wheremyScript.R
contains a simple function definition:The
REXP
output will be an instance ofREXPGenericVector
containing anRList
payload with two items: item0 is null, and item1 is a logical value.For our use-case, it is quite common to source an ad-hoc library of functions to be used as part of an Rserve session, but when debugging, it falls over. Would it be possible to put in a null-check into
toDebugString()
inREXP
classes which need to iterate over a list payload?The text was updated successfully, but these errors were encountered: