Fix possible NPE due to #3658 change

This commit is contained in:
David Pilato 2013-09-13 11:48:55 +02:00
parent b27e7d3cc9
commit e2400bc40e

View File

@ -1042,7 +1042,7 @@ public class Strings {
}
public static String[] splitStringToArray(final CharSequence s, final char c) {
if (s.length() == 0) {
if (s == null || s.length() == 0) {
return Strings.EMPTY_ARRAY;
}
int count = 1;