Thanks for the reply bud thats helpful but what do i need to update it to?
I can't tell just like that, you need to look at it and see why it's resulting in null every time. Once you figure it out figure out the correct way of doing it. Once you have done that too, you'll be able to patch this.