Catch NPE's in datastore and delete the null entry. I never found out how it is possible that an entry is null because if you try to add an null entry to the list an NPE should be thrown immediately.