Commit 32850b5e authored by Daniel Felipe  GONZALEZ OBANDO's avatar Daniel Felipe GONZALEZ OBANDO
Browse files

Fixing Null pointer exceptions

- on computeDimension
- when exporting to XLS
parent 15f04320
......@@ -1514,7 +1514,7 @@ public class ActiveContours extends EzPlug implements EzStoppable, Block
}
catch (Exception e)
{
throw new RuntimeException(e.getCause());
throw new RuntimeException(e);
}
if (coupling_flag.getValue())
......@@ -1591,7 +1591,7 @@ public class ActiveContours extends EzPlug implements EzStoppable, Block
}
catch (ExecutionException e)
{
e.getCause().printStackTrace();
e.printStackTrace();
throw new RuntimeException(e);
}
catch (RuntimeException e)
......@@ -1640,7 +1640,7 @@ public class ActiveContours extends EzPlug implements EzStoppable, Block
}
catch (Exception e)
{
e.getCause().printStackTrace();
e.printStackTrace();
throw new RuntimeException(e);
}
}
......@@ -1675,7 +1675,7 @@ public class ActiveContours extends EzPlug implements EzStoppable, Block
}
catch (Exception e)
{
e.getCause().printStackTrace();
e.printStackTrace();
throw new RuntimeException(e);
}
}
......@@ -1726,8 +1726,6 @@ public class ActiveContours extends EzPlug implements EzStoppable, Block
if (isHeadLess())
System.out.println("=> Storing result...");
boolean noResultsOnCurrentFrame = true;
List<TrackSegment> segments = trackGroup.getValue().getTrackSegmentList();
// Append the current list to the existing one
List<ROI> rois = new ArrayList<ROI>(Arrays.asList(roiOutput.getValue()));
......@@ -1740,8 +1738,6 @@ public class ActiveContours extends EzPlug implements EzStoppable, Block
if (contour == null)
continue;
noResultsOnCurrentFrame = false;
// Update volume information
if (!volumes.containsKey(segment))
volumes.put(segment, contour.getDimension(2));
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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