There was an error while loading. Please reload this page.
1 parent 235e16a commit a937e2eCopy full SHA for a937e2e
src/main/java/javax/visrec/ml/data/BasicDataSet.java
@@ -21,7 +21,7 @@ public class BasicDataSet<E> implements DataSet<E> {
21
/**
22
* List of data set columns. Each column provides info about it's name, type.
23
*/
24
- private List<Column> columns;
+ private List<Column> columns = new ArrayList();
25
26
protected BasicDataSet() {
27
items = new ArrayList<>();
@@ -62,7 +62,7 @@ public List<Column> getColumns() {
62
}
63
64
public void setColumnNames(String[] columnNames) {
65
- for(int i=0; i<columns.size(); i++) {
+ for(int i=0; i<columnNames.length; i++) {
66
columns.get(i).setName(columnNames[i]);
67
68
0 commit comments