Commit 14caf8e9 authored by Daniel Felipe  GONZALEZ OBANDO's avatar Daniel Felipe GONZALEZ OBANDO
Browse files

fix possible NoSuchElementFoundException

parent b55e2ded
......@@ -1471,7 +1471,9 @@ public class ActiveContours extends EzPlug implements EzStoppable, Block {
if (nbContours == 1) {
// use the current thread
new LocalRegionStatisticsComputer(allContoursAtTimeT.iterator().next(), !locally).call();
for (ActiveContour contour: allContoursAtTimeT) {
new LocalRegionStatisticsComputer(contour, !locally).call();
}
} else {
// use multiple threads
Collection<Callable<Object>> updaters = new ArrayList<Callable<Object>>(allContoursAtTimeT.size());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment