Crash and upgrade

This commit is contained in:
huangyuhui
2018-01-27 16:16:38 +08:00
parent 1ff36552e0
commit 2c7510fe5f
20 changed files with 293 additions and 58 deletions

View File

@@ -283,6 +283,7 @@ public final class Lang {
public static Integer toIntOrNull(Object string) {
try {
if (string == null) return null;
return Integer.parseInt(string.toString());
} catch (NumberFormatException e) {
return null;