Sorry, I have no idea what you are talking about. My demonstrative code example linked above works. It tries to show you how to split up a line once you have some lines. Those lines are supposed to be strings, which your mock data isn't (that's the whole point).
If you have a runtime error to debug in your own code, please post actual code, not a diff described in words (and nothing to diff against).