kennknowles commented on code in PR #35919:
URL: https://github.com/apache/beam/pull/35919#discussion_r2377135320


##########
sdks/java/io/solace/src/main/java/org/apache/beam/sdk/io/solace/read/UnboundedSolaceReader.java:
##########
@@ -181,11 +181,18 @@ public void finalizeReadyMessages() {
 
   @Override
   public Instant getWatermark() {
-    // should be only used by a test receiver
     if (getSessionService().getReceiver().isEOF()) {
       return BoundedWindow.TIMESTAMP_MAX_VALUE;
     }
-    return watermarkPolicy.getWatermark();
+    Instant watermark = watermarkPolicy.getWatermark();
+    if (watermark == null) {

Review Comment:
   Responding to your top level comment here, since it is where there is work 
to do: this null check should be removed. It is forbidden by the type system. 
If you have a reproduction where a null shows up here, then that is the bug to 
address.



-- 
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