projects
/
jFCPlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix npe
[jFCPlib.git]
/
src
/
net
/
pterodactylus
/
fcp
/
highlevel
/
HighLevelClient.java
diff --git
a/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java
b/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java
index
a09b289
..
e62c428
100644
(file)
--- 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) {
* if there was no exception
*/
private void disconnect(Throwable throwable) {
- fcpConnection.close();
+ if (fcpConnection != null) {
+ fcpConnection.close();
+ }
fireClientDisconnected(throwable);
}
fireClientDisconnected(throwable);
}