def flatten_list(l):
    """Flatten a list of lists."""
    warning_msg = 'Warning: returning None.'
    assert len(l), 'Encountered empty list.'
    if l is None or l[0] is None:
        print(warning_msg)
        return [None]
    else:
        return [val for sublist in l for val in sublist]