lukecwik commented on a change in pull request #12029:
URL: https://github.com/apache/beam/pull/12029#discussion_r442342688
##########
File path:
sdks/java/harness/src/main/java/org/apache/beam/fn/harness/state/FnApiStateAccessor.java
##########
@@ -128,7 +128,7 @@ public FnApiStateAccessor(
@Override
public ResultT get() {
ArgT currentArg = arg.get();
- if (currentArg != memoizedArg) {
+ if (currentArg != memoizedArg || currentArg == null) {
Review comment:
I realized this and updated my comment just after posting to use a
boolean.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]