mongodb/mongo-java-driver — pull request #111 by aakhmerov (2013-04-22 14:16:22+00:00)
Title: isMongosConnection NPE handling

I have faced NPE in isMongosConnection method at Mongo.class. Added code to handle it in polite manner and a unit test to illustrate the case. The problem is that it's not always reproduced locally, I'd even say that there has to happen some integration magic before it is reproduced.

Use case is taken from Fongo project.