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 ...@@ -1514,7 +1514,7 @@ public class ActiveContours extends EzPlug implements EzStoppable, Block
} }
catch (Exception e) catch (Exception e)
{ {
throw new RuntimeException(e.getCause()); throw new RuntimeException(e);
} }
if (coupling_flag.getValue()) if (coupling_flag.getValue())
...@@ -1591,7 +1591,7 @@ public class ActiveContours extends EzPlug implements EzStoppable, Block ...@@ -1591,7 +1591,7 @@ public class ActiveContours extends EzPlug implements EzStoppable, Block
} }
catch (ExecutionException e) catch (ExecutionException e)
{ {
e.getCause().printStackTrace(); e.printStackTrace();
throw new RuntimeException(e); throw new RuntimeException(e);
} }
catch (RuntimeException e) catch (RuntimeException e)
...@@ -1640,7 +1640,7 @@ public class ActiveContours extends EzPlug implements EzStoppable, Block ...@@ -1640,7 +1640,7 @@ public class ActiveContours extends EzPlug implements EzStoppable, Block
} }
catch (Exception e) catch (Exception e)
{ {
e.getCause().printStackTrace(); e.printStackTrace();
throw new RuntimeException(e); throw new RuntimeException(e);
} }
} }
...@@ -1675,7 +1675,7 @@ public class ActiveContours extends EzPlug implements EzStoppable, Block ...@@ -1675,7 +1675,7 @@ public class ActiveContours extends EzPlug implements EzStoppable, Block
} }
catch (Exception e) catch (Exception e)
{ {
e.getCause().printStackTrace(); e.printStackTrace();
throw new RuntimeException(e); throw new RuntimeException(e);
} }
} }
...@@ -1726,8 +1726,6 @@ public class ActiveContours extends EzPlug implements EzStoppable, Block ...@@ -1726,8 +1726,6 @@ public class ActiveContours extends EzPlug implements EzStoppable, Block
if (isHeadLess()) if (isHeadLess())
System.out.println("=> Storing result..."); System.out.println("=> Storing result...");
boolean noResultsOnCurrentFrame = true;
List<TrackSegment> segments = trackGroup.getValue().getTrackSegmentList(); List<TrackSegment> segments = trackGroup.getValue().getTrackSegmentList();
// Append the current list to the existing one // Append the current list to the existing one
List<ROI> rois = new ArrayList<ROI>(Arrays.asList(roiOutput.getValue())); List<ROI> rois = new ArrayList<ROI>(Arrays.asList(roiOutput.getValue()));
...@@ -1740,8 +1738,6 @@ public class ActiveContours extends EzPlug implements EzStoppable, Block ...@@ -1740,8 +1738,6 @@ public class ActiveContours extends EzPlug implements EzStoppable, Block
if (contour == null) if (contour == null)
continue; continue;
noResultsOnCurrentFrame = false;
// Update volume information // Update volume information
if (!volumes.containsKey(segment)) if (!volumes.containsKey(segment))
volumes.put(segment, contour.getDimension(2)); 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