Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb8d8e80 authored by fbaron's avatar fbaron Committed by Automerger Merge Worker
Browse files

Add NullPointerException to try/catch since it's possible to have such an error am: 9ffd90a8

parents b085f9e8 9ffd90a8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
        }