Browse Source

添加 BigIntegerExt 扩展 BigInteger

James 2 years ago
parent
commit
949a83df86

+ 1 - 1
src/main/java/com/jfinal/template/ext/extensionmethod/StringExt.java

@@ -91,7 +91,7 @@ public class StringExt {
 	}
 
 	public BigInteger toBigInteger(String self) {
-		return new BigInteger(self);
+		return StrKit.isBlank(self) ? null : new BigInteger(self);
 	}
 }