Fix NPE in CallDetailActivity

Bug: 11574365
Change-Id: I8998e9a631ef5bb3d2e4e317e117e672c3b3d798
diff --git a/src/com/android/contacts/common/util/UriUtils.java b/src/com/android/contacts/common/util/UriUtils.java
index 352da48..dbe900b 100644
--- a/src/com/android/contacts/common/util/UriUtils.java
+++ b/src/com/android/contacts/common/util/UriUtils.java
@@ -50,6 +50,6 @@
     }
 
     public static boolean isEncodedContactUri(Uri uri) {
-        return uri.getLastPathSegment().equals(Constants.LOOKUP_URI_ENCODED);
+        return uri != null && uri.getLastPathSegment().equals(Constants.LOOKUP_URI_ENCODED);
     }
 }