All tryToClose() methods should check for null arguments.

This commit is contained in:
akwizgran
2014-04-04 18:56:55 +01:00
parent 75f13f53a0
commit e260aac3d2
4 changed files with 10 additions and 6 deletions

View File

@@ -209,6 +209,10 @@ class DroidtoothPlugin implements DuplexPlugin {
tryToClose(socket);
return;
}
if(LOG.isLoggable(INFO)) {
String address = s.getRemoteDevice().getAddress();
LOG.info("Connection from " + address);
}
callback.incomingConnectionCreated(wrapSocket(s));
}
}