Only add callback into missed call notification with non-null handle.

Change-Id: I13fac3aa2c12b232c9caa0d19fa5ab544d8b907b
diff --git a/src/com/android/server/telecom/ui/MissedCallNotifierImpl.java b/src/com/android/server/telecom/ui/MissedCallNotifierImpl.java
index 11a2738..ef16e59 100644
--- a/src/com/android/server/telecom/ui/MissedCallNotifierImpl.java
+++ b/src/com/android/server/telecom/ui/MissedCallNotifierImpl.java
@@ -164,9 +164,16 @@
             intent.putExtra(TelecomManager.EXTRA_CLEAR_MISSED_CALLS_INTENT,
                     createClearMissedCallsPendingIntent());
 
+
             if (count == 1 && call != null) {
-                intent.putExtra(TelecomManager.EXTRA_CALL_BACK_INTENT,
-                    createCallBackPendingIntent(call.getHandle()));
+                final Uri handleUri = call.getHandle();
+                String handle = handleUri == null ? null : handleUri.getSchemeSpecificPart();
+
+                if (!TextUtils.isEmpty(handle) && !TextUtils.equals(handle,
+                        mContext.getString(R.string.handle_restricted))) {
+                    intent.putExtra(TelecomManager.EXTRA_CALL_BACK_INTENT,
+                            createCallBackPendingIntent(handleUri));
+                }
             }
 
             mContext.sendBroadcast(intent);