diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml deleted file mode 100644 index 7f68460..0000000 --- a/.idea/runConfigurations.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sightparser/src/main/java/sugar/free/sightparser/handling/SightService.java b/sightparser/src/main/java/sugar/free/sightparser/handling/SightService.java index bf5cd88..8ab925f 100644 --- a/sightparser/src/main/java/sugar/free/sightparser/handling/SightService.java +++ b/sightparser/src/main/java/sugar/free/sightparser/handling/SightService.java @@ -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(); }