State:Closed|icon_bug|icon_katana|database:public|Resolution:Fixed|TargetRelease:3.5v3|BugID:428285|
getChildName() returns a nil versus an empty string when accessing an index-out-of-bounds.
local gb = GroupBuilder()gb:set("foo", StringAttribute("bar"))Interface.SetAttr('groupAttribute', gb:build())
2) Attach a new OpScript node downstream with the following Lua code and set the applyWhere parameter to "at specific location".
local foo = Interface.GetAttr('groupAttribute')print('getChildName() type: ' .. type(foo:getChildName(1)))
3) Expand the scene graph.getChildName() returns a string.
getChildName() type: string getChildName() returns a nil.
getChildName() type: nil getChildName() to catch potential type errors.We're sorry to hear that
Please tell us why