liquibase-core/src/main/java/liquibase/util/CollectionUtil.java
public static <T> List<T> createIfNull(List<T> currentValue) {
        if (currentValue == null) {
            return new ArrayList<T>();
        } else {
            return currentValue;
        }
    }
public static <T> List<T> createIfNull(List<T> currentValue) {
        if (currentValue == null) {
            return new ArrayList<T>();
        } else {
            return currentValue;
        }
    }
public static < T > List < T > createIfNull ( List < T > currentValue ) { if ( currentValue == null ) { return new ArrayList < T > ( ) ; } else { return currentValue ; } }
Returns passed currentValue if it is not null and creates a new ArrayList if it is null.
<br><br>
Example: values = createIfNull(values)
Returns passed currentValue if it is not null and creates a new ArrayList if it is null . <br > <br > Example : values = createIfNull ( values )