am a005cb2d: am 28a20d1a: am 98243310: Fix exception when creating a remote connection

* commit 'a005cb2d1568d61369e491915fce5811a607dc31':
  Fix exception when creating a remote connection
diff --git a/src/com/android/services/telephony/TelephonyConnectionService.java b/src/com/android/services/telephony/TelephonyConnectionService.java
index b3467a6..00fc362 100644
--- a/src/com/android/services/telephony/TelephonyConnectionService.java
+++ b/src/com/android/services/telephony/TelephonyConnectionService.java
@@ -263,9 +263,11 @@
 
     private Phone getPhoneForAccount(PhoneAccountHandle accountHandle) {
         if (Objects.equals(mExpectedComponentName, accountHandle.getComponentName())) {
-            int phoneId = SubscriptionController.getInstance().getPhoneId(
-                    Long.parseLong(accountHandle.getId()));
-            return PhoneFactory.getPhone(phoneId);
+            if (accountHandle.getId() != null) {
+                int phoneId = SubscriptionController.getInstance().getPhoneId(
+                        Long.parseLong(accountHandle.getId()));
+                return PhoneFactory.getPhone(phoneId);
+            }
         }
         return null;
     }