Skip to content

Commit

Permalink
Fix for NullPointerException
Browse files Browse the repository at this point in the history
  • Loading branch information
TebbeUbben committed Mar 22, 2018
1 parent f247e73 commit 61aae81
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,10 @@ public void reset() throws RemoteException {
@Override
public void aclDisconnect(String mac) throws RemoteException {
if (verifyAdminCaller("aclDisconnect")) {
if (bluetoothSocket == null) return;
if (getDataStorage().get("DEVICEMAC").equalsIgnoreCase(mac)) {
try {
if (bluetoothSocket != null && bluetoothSocket.isConnected()) {
if (bluetoothSocket.isConnected()) {
Log.d("SightService", "Received ACL disconnect, closing socket...");
bluetoothSocket.close();
}
Expand Down

0 comments on commit 61aae81

Please sign in to comment.