diff options
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java b/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java index 54b6382..d4f7ef7 100644 --- a/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java +++ b/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java @@ -58,6 +58,10 @@ public class LiveWallpaperPreview extends Activity { private Dialog mDialog; static void showPreview(Activity activity, int code, Intent intent, WallpaperInfo info) { + if (info == null) { + Log.w(LOG_TAG, "Failure showing preview", new Throwable()); + return; + } Intent preview = new Intent(activity, LiveWallpaperPreview.class); preview.putExtra(EXTRA_LIVE_WALLPAPER_INTENT, intent); preview.putExtra(EXTRA_LIVE_WALLPAPER_SETTINGS, info.getSettingsActivity()); |