Fixed stack overflow error. Now getting a null pointer.

Signed-off-by: Jared Woolston <jwoolston@tenkiv.com>