Skip to content

Commit

Permalink
Fix NullPointer
Browse files Browse the repository at this point in the history
  • Loading branch information
nyancrimew committed Jun 19, 2017
1 parent 9e74022 commit 836234a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ch/deletescape/lawnchair/IconCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,9 @@ void updateIconInDBAndMemCache(LauncherActivityInfoCompat app, long userSerial)
final ComponentKey key = new ComponentKey(app.getComponentName(), app.getUser());
CacheEntry entry;
entry = mCache.get(key);
if (entry == null) {
return;
}
Bitmap tmp = entry.icon;
entry.icon = Utilities.createBadgedIconBitmap(
pip.getIcon(app, mIconDpi), app.getUser(),
Expand Down

0 comments on commit 836234a

Please sign in to comment.