cloudant/scalang — pull request #1 by rnewson (2013-03-30 15:53:38+00:00)
Title: handshakeFuture can be null

If the if clause fails before it has ever succeeded, handshakeFuture
will be null, the test for isDone then fails.

BugzID: 18623