static String[] toNoNullStringArray(Object[] array) {
        List<String> list = new ArrayList<String>(array.length);
        for (Object e : array) {
            if (e != null) {
                list.add(e.toString());
            }
        }
        return list.toArray(ArrayUtils.EMPTY_STRING_ARRAY);
    }
Returns a new array of Strings without null elements. Internal method used to normalize exclude lists
(arrays and collections). Note that {@link Arrays#sort(Object[])} will throw an {@link NullPointerException}
if an array element is <code>null</code>.

@param array
           The array to check
@return The given array or a new array without null.
android/android_framework/base/src/main/java/lang3/builder/ReflectionToStringBuilder.java