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

Commit 977838b5 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing nullpointer exception when accessing StatsLogger before initialization

Bug: 236227523
Test: Manual
Change-Id: I2caaa143ab2ddd4442d5c56152c7b4a7c723b92b
parent 4a0129fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -77,8 +77,8 @@ public abstract class BaseActivity extends Activity implements AppLauncher,
            new ArrayList<>();

    protected DeviceProfile mDeviceProfile;
    protected StatsLogManager mStatsLogManager;
    protected SystemUiController mSystemUiController;
    private StatsLogManager mStatsLogManager;


    public static final int ACTIVITY_STATE_STARTED = 1 << 0;
+1 −1
Original line number Diff line number Diff line
@@ -740,7 +740,7 @@ public class Launcher extends StatefulActivity<LauncherState>
                completeAddAppWidget(appWidgetId, info, null, null);
                break;
            case REQUEST_RECONFIGURE_APPWIDGET:
                mStatsLogManager.logger().withItemInfo(info).log(LAUNCHER_WIDGET_RECONFIGURED);
                getStatsLogManager().logger().withItemInfo(info).log(LAUNCHER_WIDGET_RECONFIGURED);
                completeRestoreAppWidget(appWidgetId, LauncherAppWidgetInfo.RESTORE_COMPLETED);
                break;
            case REQUEST_BIND_PENDING_APPWIDGET: {