check Elements Not Null
Throw NullPointerException if any of list's items is null.
Throw NullPointerException if any ofmap's keys or values is null.
Throw NullPointerException if any of list's items is null.
Throw NullPointerException if any ofmap's keys or values is null.