mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Add NullPointerException to try/catch since it's possible to have such an error am: 9ffd90a85b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/25031355 Change-Id: I935bb241e0b08ddb806f32d233ee359355d95df9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -107,7 +107,7 @@ public class ShortcutCachingLogic implements CachingLogic<ShortcutInfo> {
|
||||
try {
|
||||
return context.getSystemService(LauncherApps.class)
|
||||
.getShortcutIconDrawable(shortcutInfo, density);
|
||||
} catch (SecurityException | IllegalStateException e) {
|
||||
} catch (SecurityException | IllegalStateException | NullPointerException e) {
|
||||
Log.e(TAG, "Failed to get shortcut icon", e);
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user