mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +00:00
timeline handle null cond
This commit is contained in:
parent
1c39037da2
commit
d06d38972c
@ -355,11 +355,14 @@ public class Timeline extends CallableSystemAction implements Presenter.Toolbar,
|
||||
//After the series are created, 1 or more series are packaged into a single chart.
|
||||
ObservableList<BarChart.Series<String, Number>> bcData = FXCollections.observableArrayList();
|
||||
BarChart.Series<String, Number> se = new BarChart.Series<String, Number>();
|
||||
for (final YearEpoch ye : allYears) {
|
||||
se.getData().add(new BarChart.Data<String, Number>(String.valueOf(ye.year), ye.getNumFiles()));
|
||||
if (allYears != null) {
|
||||
for (final YearEpoch ye : allYears) {
|
||||
se.getData().add(new BarChart.Data<String, Number>(String.valueOf(ye.year), ye.getNumFiles()));
|
||||
}
|
||||
}
|
||||
bcData.add(se);
|
||||
|
||||
|
||||
//Note:
|
||||
// BarChart.Data wraps the Java Nodes class. BUT, until a BarChart.Data gets added to an actual series, it's node is null, and you can perform no operations on it.
|
||||
// When the Data is added to a series(or a chart? I am unclear on where), a node is automaticaly generated for it, after which you can perform any of the operations it offers.
|
||||
|
Loading…
x
Reference in New Issue
Block a user