Merge "Fix register for notification logic"
diff --git a/src/com/android/bluetooth/gatt/GattService.java b/src/com/android/bluetooth/gatt/GattService.java
index 949b233..5f838c4 100644
--- a/src/com/android/bluetooth/gatt/GattService.java
+++ b/src/com/android/bluetooth/gatt/GattService.java
@@ -1524,7 +1524,7 @@
         if (DBG) Log.d(TAG, "registerForNotification() - address=" + address + " enable: " + enable);
 
         Integer connId = mClientMap.connIdByAddress(clientIf, address);
-        if (connId != null) {
+        if (connId == null) {
             Log.e(TAG, "registerForNotification() - No connection for " + address + "...");
             return;
         }