mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix bug
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
*
|
*
|
||||||
### 🐞Bug修复
|
### 🐞Bug修复
|
||||||
* 【extra 】 修复createExtractor中抛出异常后流未关闭问题(pr#2384@Github)
|
* 【extra 】 修复createExtractor中抛出异常后流未关闭问题(pr#2384@Github)
|
||||||
|
* 【core 】 修复CsvData.getHeader没有判空导致空指针问题(issue#I5CK7Q@Gitee)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -42,6 +42,9 @@ public class CsvData implements Iterable<CsvRow>, Serializable {
|
|||||||
* @return the header row - might be {@code null} if no header exists
|
* @return the header row - might be {@code null} if no header exists
|
||||||
*/
|
*/
|
||||||
public List<String> getHeader() {
|
public List<String> getHeader() {
|
||||||
|
if(null == this.header){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return Collections.unmodifiableList(this.header);
|
return Collections.unmodifiableList(this.header);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user