From e3ad8f5c88b2ccc513a99753e221ba71b4aa0cda Mon Sep 17 00:00:00 2001 From: CyC2018 <1029579233@qq.com> Date: Fri, 11 May 2018 16:25:23 +0800 Subject: [PATCH] auto commit --- notes/剑指 offer 题解.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/notes/剑指 offer 题解.md b/notes/剑指 offer 题解.md index 5e2b2553..b785b54d 100644 --- a/notes/剑指 offer 题解.md +++ b/notes/剑指 offer 题解.md @@ -1017,6 +1017,8 @@ public boolean match(char[] str, char[] pattern) { ```java public boolean isNumeric(char[] str) { + if (str == null) + return false; return new String(str).matches("[+-]?\\d*(\\.\\d+)?([eE][+-]?\\d+)?"); } ```