Skip to content

Commit

Permalink
[hotfix][docs] Fix NullPointerException
Browse files Browse the repository at this point in the history
Offset is Long type, the default value is null, and executing offset+=1 in Java 1.8.x will throw a NullPointerException
  • Loading branch information
intsmaze authored and zentol committed Jan 11, 2019
1 parent be47061 commit 1a4eb09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/dev/stream/state/state.md
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ public static class CounterSource
implements ListCheckpointed<Long> {

/** current offset for exactly once semantics */
private Long offset;
private Long offset = 0L;

/** flag for job cancellation */
private volatile boolean isRunning = true;
Expand Down

0 comments on commit 1a4eb09

Please sign in to comment.