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

Added NPE on saveToXLS

parent 073cce11
...@@ -83,7 +83,7 @@ public class DeformationProfiler extends PluginTrackManagerProcessor implements ...@@ -83,7 +83,7 @@ public class DeformationProfiler extends PluginTrackManagerProcessor implements
} }
} }
private JComboBox jComboDescriptors = new JComboBox(Descriptors.values()); private JComboBox<Descriptors> jComboDescriptors = new JComboBox<Descriptors>(Descriptors.values());
private JButton jButtonSaveToVTK = new JButton("Export meshes to VTK files"); private JButton jButtonSaveToVTK = new JButton("Export meshes to VTK files");
...@@ -482,9 +482,6 @@ public class DeformationProfiler extends PluginTrackManagerProcessor implements ...@@ -482,9 +482,6 @@ public class DeformationProfiler extends PluginTrackManagerProcessor implements
XLSUtil.setCellString(sheet, 0, 0, "Track \\ Time"); XLSUtil.setCellString(sheet, 0, 0, "Track \\ Time");
// time labels
for (int t = 0; t < trackPool.getDisplaySequence().getSizeT(); t++)
XLSUtil.setCellNumber(sheet, t + 1, 0, t * tScale);
final Sequence seq = trackPool.getDisplaySequence(); final Sequence seq = trackPool.getDisplaySequence();
final int sizeT; final int sizeT;
...@@ -493,6 +490,12 @@ public class DeformationProfiler extends PluginTrackManagerProcessor implements ...@@ -493,6 +490,12 @@ public class DeformationProfiler extends PluginTrackManagerProcessor implements
sizeT = trackPool.getLastDetectionTimePoint(); sizeT = trackPool.getLastDetectionTimePoint();
else else
sizeT = seq.getSizeT(); sizeT = seq.getSizeT();
// time labels
for (int t = 0; t < sizeT; t++)
XLSUtil.setCellNumber(sheet, t + 1, 0, t * tScale);
// time labels // time labels
for (int t = 0; t < sizeT; t++) for (int t = 0; t < sizeT; t++)
......
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