Rhino warning when referencing a ValueCollection
I get this warning:
"Execution error in service script [blah] :: RHINO USAGE WARNING: Missed Context.javaToJS() conversion:_Rhino runtime detected object of class com.thingworx.types.collections.ValueCollection where it expected String, Number, Boolean or Scriptable instance. Please check your code for missing Context.javaToJS() call."
after running the below generalized code:
var foundRow = infotable.Find(object);
if (foundRow !== undefined && foundRow !== null) {
logger.info(foundRow.field);
}
I believe its telling me that the foundRow variable is a ValueCollection and I shouldn't be referencing it. However, the foundRow.field is returning the value I expect it to. Is there anyway to suppress or avoid this Rhino usage warning?

