summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrad Ebinger <breadley@google.com>2016-03-15 17:06:35 -0700
committerBrad Ebinger <breadley@google.com>2016-03-17 14:27:09 -0700
commita88667f867735490f60bdbd3f807d984df73d359 (patch)
tree7fe9f5bc3935f25dabe076cc38e4ebe90184ec39 /src
parenta98b35c260a8527dd7a952fe0dd3342fce06b89a (diff)
Return null constructing a malformed PhoneAccountHandle
Return null when constructing a PhoneAccountHandle if the ComponentName from the database is malformed. Bug: 26684527 Change-Id: I76a3e61699e0646cdf0b715d7b3908611cdca8ff
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/calllog/PhoneAccountUtils.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/dialer/calllog/PhoneAccountUtils.java b/src/com/android/dialer/calllog/PhoneAccountUtils.java
index 8c3985b3f..b3ce18b3c 100644
--- a/src/com/android/dialer/calllog/PhoneAccountUtils.java
+++ b/src/com/android/dialer/calllog/PhoneAccountUtils.java
@@ -59,6 +59,9 @@ public class PhoneAccountUtils {
return null;
}
final ComponentName componentName = ComponentName.unflattenFromString(componentString);
+ if (componentName == null) {
+ return null;
+ }
return new PhoneAccountHandle(componentName, accountId);
}