*Bangs head

I can't believe I missed that, funny how we see what we want to see! Unfortunately the function still sees null pointers.