commit | 54285f2cbfb6e307d594ca264f7230b4e1e3cdce | [log] [tgz] |
---|---|---|
author | Phil Dubach <phillipd@google.com> | Mon Jun 29 20:34:13 2009 -0700 |
committer | Phil Dubach <phillipd@google.com> | Tue Jun 30 13:19:48 2009 -0700 |
tree | c8041a76c8a31c76916dc27085a87be207292cae | |
parent | 72d19aa51e90d45c7895629db78e548da2f6d469 [diff] |
Fix NullPointerException in NinePatch constructor NinePatch.mPaint may be null and most methods in this class handle that case properly. However, the constructor which derives a new NinePatch from an existing instance assumes that mPaint is non-null. This results in an unexpected NullPointerException, for example when attempting to call NinePatchDrawable.mutate() on an instance that was created from a resource. Small unrelated fix in same file: Remove unused private mRect member.