Java entfernen Sie das Liste null Element
dataList.removeAll(Collections.singleton(null));
Copperfield
dataList.removeAll(Collections.singleton(null));