Skip to content

Commit

Permalink
fixed files form Chart #16
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent 705ecaa commit aadcd59
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ public DefaultIntervalCategoryDataset(Comparable[] seriesKeys,

}
else {
this.seriesKeys = null;
this.categoryKeys = null;
this.seriesKeys = new Comparable[0];
this.categoryKeys = new Comparable[0];
}
}

Expand Down Expand Up @@ -335,7 +335,7 @@ public void setCategoryKeys(Comparable[] categoryKeys) {
if (categoryKeys == null) {
throw new IllegalArgumentException("Null 'categoryKeys' argument.");
}
if (categoryKeys.length != this.startData[0].length) {
if (categoryKeys.length != getCategoryCount()) {
throw new IllegalArgumentException(
"The number of categories does not match the data.");
}
Expand Down

0 comments on commit aadcd59

Please sign in to comment.