Handle exception if data or owner is null