groovy

NPE with flatten() in case of null elements in the collection