diff options
author | Romain Guy <romainguy@android.com> | 2010-05-18 23:51:16 -0700 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2010-05-18 23:51:16 -0700 |
commit | 38581c9d1da8a6f31c507f693ed5a349995ec35c (patch) | |
tree | c4174cafaedbba813f12d5cda6a8f6fbb567fcde | |
parent | e25863c9093d3f60a1f6feab1d17d38946a8d020 (diff) | |
parent | 417675cab0f8f2fb73ff067071b5347186a81c19 (diff) | |
download | frameworks_base-38581c9d1da8a6f31c507f693ed5a349995ec35c.zip frameworks_base-38581c9d1da8a6f31c507f693ed5a349995ec35c.tar.gz frameworks_base-38581c9d1da8a6f31c507f693ed5a349995ec35c.tar.bz2 |
Merge "Improved error handling when font loading fails."
-rw-r--r-- | graphics/java/android/graphics/Typeface.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/Typeface.java b/graphics/java/android/graphics/Typeface.java index f0d5a6a..9a404f4 100644 --- a/graphics/java/android/graphics/Typeface.java +++ b/graphics/java/android/graphics/Typeface.java @@ -143,6 +143,9 @@ public class Typeface { // don't allow clients to call this directly private Typeface(int ni) { + if (ni == 0) { + throw new IllegalStateException(); + } native_instance = ni; } |