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

Commit 7f4db239 authored by Amith Yamasani's avatar Amith Yamasani Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE in MasterClear"

parents abc95ee8 07d6fd2c
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -196,13 +196,14 @@ public class MasterClear extends Fragment {
                        + " type=" + account.type);
                continue;
            }
            Drawable icon;
            Drawable icon = null;
            try {
                if (desc.iconId != 0) {
                    Context authContext = context.createPackageContext(desc.packageName, 0);
                    icon = authContext.getResources().getDrawable(desc.iconId);
                }
            } catch (PackageManager.NameNotFoundException e) {
                Log.w(TAG, "No icon for account type " + desc.type);
                icon = null;
            }

            TextView child = (TextView)inflater.inflate(R.layout.master_clear_account,