diff options
author | Behdad Esfahbod <behdad@google.com> | 2014-08-21 16:01:52 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-08-21 16:01:54 +0000 |
commit | 9f6ba7af562a938e4765a224b412f2d0691f586a (patch) | |
tree | 2b2b801ccccc337c3ba9e4d623f46e2d371f913d /graphics/java/android | |
parent | 7a13ea7e3b080c7c40d76275f407a4fe45635f04 (diff) | |
parent | bf8d5620f7f3be72ec217f4bcc14a417d4e1dee6 (diff) | |
download | frameworks_base-9f6ba7af562a938e4765a224b412f2d0691f586a.zip frameworks_base-9f6ba7af562a938e4765a224b412f2d0691f586a.tar.gz frameworks_base-9f6ba7af562a938e4765a224b412f2d0691f586a.tar.bz2 |
Merge "Throw exception on nonexistent font" into lmp-dev
Diffstat (limited to 'graphics/java/android')
-rw-r--r-- | graphics/java/android/graphics/Typeface.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/java/android/graphics/Typeface.java b/graphics/java/android/graphics/Typeface.java index 06586ca..568d3f2 100644 --- a/graphics/java/android/graphics/Typeface.java +++ b/graphics/java/android/graphics/Typeface.java @@ -188,7 +188,7 @@ public class Typeface { return createFromFamiliesWithDefault(families); } } - return null; + throw new RuntimeException("Font asset not found " + path); } /** @@ -215,7 +215,7 @@ public class Typeface { return createFromFamiliesWithDefault(families); } } - return null; + throw new RuntimeException("Font not found " + path); } /** |