diff --git a/application/src/org/jibble/pircbot/PircBot.java b/application/src/org/jibble/pircbot/PircBot.java index eb9cd97..2f355ff 100644 --- a/application/src/org/jibble/pircbot/PircBot.java +++ b/application/src/org/jibble/pircbot/PircBot.java @@ -2983,8 +2983,12 @@ public abstract class PircBot implements ReplyConstants { */ public synchronized void dispose() { //System.out.println("disposing..."); - _outputThread.interrupt(); - _inputThread.dispose(); + if (_outputThread != null) { + _outputThread.interrupt(); + } + if (_inputThread != null) { + _inputThread.dispose(); + } }