Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
Merge pull request #92 from sathipal/master
Browse files Browse the repository at this point in the history
Fix NPE in terminate call
  • Loading branch information
sathipal committed Apr 6, 2017
2 parents 8c70661 + 6ca9975 commit 450dc69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,9 @@ public void run() {
private void terminate() {
running = false;
try {
publishQueue.put(dummy);
if(publishQueue != null) {
publishQueue.put(dummy);
}
} catch (InterruptedException e) {
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1599,7 +1599,9 @@ public void run() {
private void terminate() {
running = false;
try {
publishQueue.put(dummy);
if(null != publishQueue) {
publishQueue.put(dummy);
}
} catch (InterruptedException e) {
}
}
Expand Down

0 comments on commit 450dc69

Please sign in to comment.