Skip to content

Commit

Permalink
fixed files form Chart #19
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent d9c74f7 commit 32392bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions projects/Chart/19/org/jfree/chart/plot/CategoryPlot.java
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,9 @@ public void setDomainAxes(CategoryAxis[] axes) {
* @since 1.0.3
*/
public int getDomainAxisIndex(CategoryAxis axis) {
if (axis == null) {
throw new IllegalArgumentException("Null 'axis' argument.");
}
return this.domainAxes.indexOf(axis);
}

Expand Down Expand Up @@ -970,6 +973,9 @@ public void setRangeAxes(ValueAxis[] axes) {
* @since 1.0.7
*/
public int getRangeAxisIndex(ValueAxis axis) {
if (axis == null) {
throw new IllegalArgumentException("Null 'axis' argument.");
}
int result = this.rangeAxes.indexOf(axis);
if (result < 0) { // try the parent plot
Plot parent = getParent();
Expand Down

0 comments on commit 32392bd

Please sign in to comment.