From fe63c7b7081dec41b85df862cb8358fcfbeb452e Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 13 May 2008 21:47:57 +0000 Subject: [PATCH] fix npe git-svn-id: http://trooper/svn/projects/jFCPlib/branch/high-level-client@867 c3eda9e8-030b-0410-8277-bc7414b0a119 --- src/net/pterodactylus/fcp/highlevel/HighLevelClient.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.7.4