Github user aljoscha commented on a diff in the pull request: https://github.com/apache/flink/pull/5485#discussion_r168769299 --- Diff: flink-runtime/src/main/java/org/apache/flink/runtime/state/UserFacingListState.java --- @@ -48,6 +49,7 @@ @Override public void add(T value) throws Exception { + Preconditions.checkNotNull(value, "You cannot add null to a ListState."); --- End diff -- Or not change this one, and defer null detection completely to the wrapping state. WDYT?
---