null exception fix in danaconnection
This commit is contained in:
parent
f2bdf4bcff
commit
2ca75b52e5
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ public class DanaConnection {
|
|||
String action = intent.getAction();
|
||||
if (BluetoothDevice.ACTION_ACL_DISCONNECTED.equals(action)) {
|
||||
log.debug("Device has disconnected " + device.getName());//Device has disconnected
|
||||
if (mDevice.getName().equals(device.getName())) {
|
||||
if (mDevice != null && mDevice.getName().equals(device.getName())) {
|
||||
if (mRfcommSocket != null) {
|
||||
try {
|
||||
mInputStream.close();
|
||||
|
|
Loading…
Reference in a new issue