Skip to content

Commit

Permalink
Merge pull request #442 from nixel2007/fix/npe-pump
Browse files Browse the repository at this point in the history
Fix NPE on close() in cmder
  • Loading branch information
gnodet authored Oct 3, 2019
2 parents f151862 + c31cca7 commit 0660ae2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ public void setSize(Size size) {
public void close() throws IOException {
super.close();
closing = true;
pump.interrupt();
if (pump != null) {
pump.interrupt();
}
ShutdownHooks.remove(closer);
for (Map.Entry<Signal, Object> entry : nativeHandlers.entrySet()) {
Signals.unregister(entry.getKey().name(), entry.getValue());
Expand Down

0 comments on commit 0660ae2

Please sign in to comment.