Someone on another message on this very topic sent this method: public static <E> Iterable<E> maybe(Iterable<E> iterable) { return iterable == null ? Collections.<E>emptyList() : iterable; } used like this: for(String s : maybe(list)){ ... } Me i consider a null list a bug.