Commit 91e42cfa00bae4a6112b359d8cb1b92c15a19e44
1 parent
33a3ecf6
Exists in
master
1.update source sn
Showing
2 changed files
with
7 additions
and
1 deletions
Show diff stats
build.gradle
src/main/java/com/taover/util/UtilString.java
| ... | ... | @@ -16,6 +16,9 @@ public class UtilString { |
| 16 | 16 | if(source == null){ |
| 17 | 17 | return null; |
| 18 | 18 | } |
| 19 | + if(source.equals("")){ | |
| 20 | + return ""; | |
| 21 | + } | |
| 19 | 22 | |
| 20 | 23 | Pattern pattern = Pattern.compile("\\S"); |
| 21 | 24 | int startIndex = -1; |
| ... | ... | @@ -37,6 +40,9 @@ public class UtilString { |
| 37 | 40 | if(source == null){ |
| 38 | 41 | return null; |
| 39 | 42 | } |
| 43 | + if(source.equals("")){ | |
| 44 | + return ""; | |
| 45 | + } | |
| 40 | 46 | |
| 41 | 47 | Pattern pattern = Pattern.compile("\\S"); |
| 42 | 48 | int endIndex = source.length(); | ... | ... |