OK is your log where you have "null" from teh snip...
# suitescript
n
OK is your log where you have "null" from teh snippet you have shared or in your actual code?