Skip to content

Commit

Permalink
fix: judging string is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
LUAgam authored and yanhuqing666 committed Jan 18, 2022
1 parent e54cfdc commit 0bef97f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ public void end(byte packetId) {
}
while ((row = parser.parseNext()) != null) {
if (ignoreNumber == 0) {
if ((row.length == 1 && row[0] == null) || row.length == 0) {
if ((row.length == 1 && row[0] == null) || (row.length == 1 && row[0].isEmpty()) || row.length == 0) {
continue;
}
try {
Expand Down Expand Up @@ -831,7 +831,7 @@ private boolean parseFileByLine(String file, String encode) {
boolean empty = true;
while ((row = parser.parseNext()) != null) {
if (ignoreNumber == 0) {
if ((row.length == 1 && row[0] == null) || row.length == 0) {
if ((row.length == 1 && row[0] == null) || (row.length == 1 && row[0].isEmpty()) || row.length == 0) {
continue;
}
try {
Expand Down

0 comments on commit 0bef97f

Please sign in to comment.