Skip to content

Commit

Permalink
Fix NumberFormatException when upgrade from old version #12719
Browse files Browse the repository at this point in the history
  • Loading branch information
shuwenwei authored Jun 12, 2024
1 parent 24a5376 commit fecdca5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public static String bytesCntToStr(long inputCnt) {
}

public static long strToBytesCnt(String str) {
if (str == null) {
if (str == null || str.isEmpty()) {
return 0;
}
str = str.toLowerCase();
Expand Down

0 comments on commit fecdca5

Please sign in to comment.