# the code you've shown is not outputting that error. the error means you're trying to use someVariable[0] when someVariable is null