Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Dont crash on exit

  • Loading branch information...
commit 057137d39ece619825b53d34bba3096c29027d5d 1 parent f4ffed9
Dale Harvey authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/com/couchbase/libcouch/CouchService.java
View
4 src/com/couchbase/libcouch/CouchService.java
@@ -37,7 +37,9 @@ public void handleMessage(Message msg) {
StringWriter sw = new StringWriter();
e.printStackTrace(new PrintWriter(sw));
String stacktrace = sw.toString();
- client.exit(stacktrace);
+ if (client != null) {
+ client.exit(stacktrace);
+ }
break;
case DOWNLOAD:
client.downloading(msg.arg1, msg.arg2);
Please sign in to comment.
Something went wrong with that request. Please try again.