Skip to content

Commit

Permalink
bluetoothSocket null check
Browse files Browse the repository at this point in the history
  • Loading branch information
TebbeUbben committed Mar 22, 2018
1 parent 0b6c5fd commit 8acc379
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions .idea/runConfigurations.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public void aclDisconnect(String mac) throws RemoteException {
if (verifyAdminCaller("aclDisconnect")) {
if (getDataStorage().get("DEVICEMAC").equalsIgnoreCase(mac)) {
try {
if (bluetoothSocket.isConnected()) {
if (bluetoothSocket != null && bluetoothSocket.isConnected()) {
Log.d("SightService", "Received ACL disconnect, closing socket...");
bluetoothSocket.close();
}
Expand Down

0 comments on commit 8acc379

Please sign in to comment.