From: David ‘Bombe’ Roden Date: Tue, 13 May 2008 21:47:57 +0000 (+0000) Subject: fix npe X-Git-Tag: v0.1.1~129 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;ds=sidebyside;h=fe63c7b7081dec41b85df862cb8358fcfbeb452e;p=jFCPlib.git fix npe git-svn-id: http://trooper/svn/projects/jFCPlib/branch/high-level-client@867 c3eda9e8-030b-0410-8277-bc7414b0a119 --- diff --git a/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java b/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java index a09b289..e62c428 100644 --- a/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java +++ b/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java @@ -525,7 +525,9 @@ public class HighLevelClient { * if there was no exception */ private void disconnect(Throwable throwable) { - fcpConnection.close(); + if (fcpConnection != null) { + fcpConnection.close(); + } fireClientDisconnected(throwable); }