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

Commit 8c4e4b08 authored by Richard Ho's avatar Richard Ho
Browse files

added null check in doInBackground and if null, properly intializes

variables.

Bug:29234237
Change-Id: I1d65b1a232c71efdd11a917769aec5044867a085
(cherry picked from commit 0f0f5414)
parent 189ef624
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -307,6 +307,13 @@ public class SettingsDrawerActivity extends Activity {
            return TileUtils.getCategories(SettingsDrawerActivity.this, sTileCache);
        }

        @Override
        protected void onPreExecute() {
            if (sConfigTracker == null || sTileCache == null) {
                getDashboardCategories();
            }
        }

        @Override
        protected void onPostExecute(List<DashboardCategory> dashboardCategories) {
            for (int i = 0; i < dashboardCategories.size(); i++) {