Skip to content

Commit

Permalink
Check if javaInstance is created in the first place before invocing c…
Browse files Browse the repository at this point in the history
…lose (#1688)
  • Loading branch information
srkukarni authored and sijie committed May 1, 2018
1 parent fb7198a commit 600b55d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,9 @@ private void sendOutputMessage(Record srcRecord,
@Override
public void close() {
processor.close();
javaInstance.close();
if (null != javaInstance) {
javaInstance.close();
}

// kill the state table
if (null != stateTable) {
Expand Down

0 comments on commit 600b55d

Please sign in to comment.