Skip to content

Commit e846bc5

Browse files
Treiblesschorlectrueden
authored andcommitted
Keep searching for transformations
1 parent 4372720 commit e846bc5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/java/org/scijava/ops/transform/DefaultOpTransformerService.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ private OpTransformationCandidate findTransfromation(OpService opService, OpTran
9595
} catch (OpMatchingException e) {
9696
List<OpTransformation> ts = getTansformationsTo(fromRef);
9797
for (OpTransformation t : ts) {
98-
return findTransfromation(opService, t.chain(candidate), depth + 1);
98+
OpTransformationCandidate cand = findTransfromation(opService, t.chain(candidate), depth + 1);
99+
if (cand != null) {
100+
return cand;
101+
}
99102
}
100103
}
101104
}

0 commit comments

Comments
 (0)