- if(!aCopyAlgo->isDone()) {
- setError("Error: recover algorithm failed.");
- return;
- }
- // Check if shape is not null.
- if(!aCopyAlgo->shape().get() || aCopyAlgo->shape()->isNull()) {
- setError("Error: resulting shape is null.");
- return;
- }
- // Check that resulting shape is valid.
- if(!aCopyAlgo->isValid()) {
- setError("Error: resulting shape is not valid.");