baeminbo commented on code in PR #17201:
URL: https://github.com/apache/beam/pull/17201#discussion_r846722414


##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/IsmReaderImpl.java:
##########
@@ -491,24 +502,27 @@ public int hashCode() {
 
     inChannel = initializeBloomFilterAndIndexPerShard(inChannel);
 
+    checkState(indexPerShard != null,
+        "indexPerShard must not be null after 
initializeBloomFilterAndIndexPerShard.");
+
     // If the index has been populated and contains the shard id, we can 
return.
     if (indexPerShard != null && indexPerShard.containsKey(shardId)) {

Review Comment:
   Done



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to