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
}
}
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");
......@@ -482,9 +482,6 @@ public class DeformationProfiler extends PluginTrackManagerProcessor implements
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 int sizeT;
......@@ -494,6 +491,12 @@ public class DeformationProfiler extends PluginTrackManagerProcessor implements
else
sizeT = seq.getSizeT();
// time labels
for (int t = 0; t < sizeT; t++)
XLSUtil.setCellNumber(sheet, t + 1, 0, t * tScale);
// time labels
for (int t = 0; t < sizeT; t++)
XLSUtil.setCellNumber(sheet, t + 1, 0, t * tScale);
......
Supports Markdown
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