mirror of
https://gitee.com/dromara/hutool.git
synced 2025-06-28 13:34:09 +08:00
优化Sax方式读取时空白行返回0,修改为返回-1
This commit is contained in:
parent
f96cf1127c
commit
8a4496b3af
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
### 🐣新特性
|
### 🐣新特性
|
||||||
* 【db 】 优化HttpRequest.toString()内容打印(issue#3072@Github)
|
* 【db 】 优化HttpRequest.toString()内容打印(issue#3072@Github)
|
||||||
|
* 【poi 】 优化Sax方式读取时空白行返回0,修改为返回-1(issue#I6WYF6@Gitee)
|
||||||
|
|
||||||
### 🐞Bug修复
|
### 🐞Bug修复
|
||||||
* 【core 】 修复URLUtil.decode无法解码UTF-16问题(issue#3063@Github)
|
* 【core 】 修复URLUtil.decode无法解码UTF-16问题(issue#3063@Github)
|
||||||
|
@ -172,9 +172,8 @@ public class SheetDataSaxHandler extends DefaultHandler {
|
|||||||
*/
|
*/
|
||||||
private void startRow(Attributes attributes) {
|
private void startRow(Attributes attributes) {
|
||||||
final String rValue = AttributeName.r.getValue(attributes);
|
final String rValue = AttributeName.r.getValue(attributes);
|
||||||
if (null != rValue) {
|
// https://gitee.com/dromara/hutool/issues/I6WYF6
|
||||||
this.rowNumber = Long.parseLong(rValue) - 1;
|
this.rowNumber = (null == rValue) ? -1 : Long.parseLong(rValue) - 1;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user