set GError to nullptr