code: public static void noNullElements(Object[] array, String message) {
          if (array != null) {
              for (int i = 0; i < array.length; i++) {
                  if (array[i] == null) {
                      throw new IllegalArgumentException(message);
                  }
              }
          }
      }
docs: Assert that an array has no null elements.
  Note: Does not complain if the array is empty!
  <pre class="code">Assert.noNullElements(array, "The array must have non-null elements");</pre>
  @param array the array to check
  @param message the exception message to use if the assertion fails
  @throws IllegalArgumentException if the object array contains a <code>null</code> element