You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2023/01/04 00:05:49 UTC

[GitHub] [beam] reuvenlax commented on issue #24801: [Bug]: ReadableState.read() marked not nullable, but it does return null when not initialized

reuvenlax commented on issue #24801:
URL: https://github.com/apache/beam/issues/24801#issuecomment-1370346449

   @kennknowles ValueState (and related objects such as CombiningState) return null if the state has not been set yet, and this is how users check for that case today (related: adding a readWithDefault might simplify usage). This is a property of ValueState, i.e. it is true for every single type T in ValueState<T>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org