diff options
| author | 2009-06-29 20:34:13 -0700 | |
|---|---|---|
| committer | 2009-06-30 13:19:48 -0700 | |
| commit | 54285f2cbfb6e307d594ca264f7230b4e1e3cdce (patch) | |
| tree | c8041a76c8a31c76916dc27085a87be207292cae /libs/surfaceflinger/LayerBitmap.cpp | |
| 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.
Diffstat (limited to 'libs/surfaceflinger/LayerBitmap.cpp')
0 files changed, 0 insertions, 0 deletions