Null Checker sur Addall Java

Optional.ofNullable(listToBeAdded).ifPresent(listToBeAddedTo::addAll)
Talented Tarantula