mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
优化Sax方式读取时空白行返回0,修改为返回-1
This commit is contained in:
parent
fc8df677ca
commit
5d7180c939
@ -189,9 +189,8 @@ public class SheetDataSaxHandler extends DefaultHandler {
|
||||
*/
|
||||
private void startRow(final Attributes attributes) {
|
||||
final String rValue = AttributeName.r.getValue(attributes);
|
||||
if (null != rValue) {
|
||||
this.rowNumber = Long.parseLong(rValue) - 1;
|
||||
}
|
||||
// https://gitee.com/dromara/hutool/issues/I6WYF6
|
||||
this.rowNumber = (null == rValue) ? -1 : Long.parseLong(rValue) - 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user