Browse Source

notBlank(String... strings)方法的 if(strings == null) 改为了 if (strings ==
null || string.length ==0)

James 8 years ago
parent
commit
1ee4208567
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/jfinal/kit/StrKit.java

+ 1 - 1
src/main/java/com/jfinal/kit/StrKit.java

@@ -79,7 +79,7 @@ public class StrKit {
 	}
 	
 	public static boolean notBlank(String... strings) {
-		if (strings == null) {
+		if (strings == null || strings.length == 0) {
 			return false;
 		}
 		for (String str : strings) {