Skip to content

Commit

Permalink
[FLINK-4631] Prevent NPE in TwoInputStreamTask
Browse files Browse the repository at this point in the history
Check that the input processor has been created before cleaning it up.
  • Loading branch information
tillrohrmann committed Dec 7, 2016
1 parent 4410c04 commit 13150a4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ protected void run() throws Exception {

@Override
protected void cleanup() throws Exception {
inputProcessor.cleanup();
if (inputProcessor != null) {
inputProcessor.cleanup();
}
}

@Override
Expand Down

0 comments on commit 13150a4

Please sign in to comment.