Skip to content

Commit

Permalink
[BEAM-6424] Avoid NPE when getWatermark() is called whereas the oldes…
Browse files Browse the repository at this point in the history
…t timestamp is not yet set.
  • Loading branch information
jbonofre committed Jan 23, 2019
1 parent 21f4b54 commit 967fa79
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public boolean requiresDeduping() {
private static class RabbitMQCheckpointMark
implements UnboundedSource.CheckpointMark, Serializable {
transient Channel channel;
Instant oldestTimestamp;
Instant oldestTimestamp = Instant.now();
final List<Long> sessionIds = new ArrayList<>();

@Override
Expand Down

0 comments on commit 967fa79

Please sign in to comment.