Null reference exception with a twist.