mirror of https://github.com/apache/poi.git
fixed ArrayIndexOutOfBoundsException in the format(short, double) method
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@394843 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7b2729cc70
commit
6e09c4be55
|
@ -112,7 +112,7 @@ public class SVTableCellRenderer extends JLabel
|
|||
}
|
||||
|
||||
public String format(short index, double value) {
|
||||
if (index == 0)
|
||||
if ( index <= 0 )
|
||||
return generalNumberFormat.format(value);
|
||||
if (textFormatter[index] == null)
|
||||
throw new RuntimeException("Sorry. I cant handle the format code :"+Integer.toHexString(index));
|
||||
|
|
Loading…
Reference in New Issue