Changed NULL to nullptr.