commit | 4db7e933f4c26e28f82dc912863f7d02d8fb94ab | [log] [tgz] |
---|---|---|
author | Nils Holmström <nils.holmstrom@sonymobile.com> | Thu Apr 26 18:46:23 2012 +0200 |
committer | Kenneth Andersson <kenneth.andersson@sonymobile.com> | Tue Aug 14 10:49:12 2012 +0200 |
tree | 01162c2508799eb29c14afbeaf792522e7486fb2 | |
parent | 39e7dfee746d73670eea435024a80ae9dbedf176 [diff] |
NPE in WallpaperHandler In WallpaperHandler, BitmapFactory.decodeStream() is used to create a Bitmap that is then set by WallpaperManager as a wallpaper. This method has null as return value when something fails as decoding, resulting in a nullpointer exception in WallpaperManager. Adding nullcheck on the Bitmap before setting it as wallpaper to avoid the NPE. Change-Id: Ib1a0f9331898162b21094c3ebe80bc21d66f8bd7