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

Commit 2d76d7cd authored by Sihua Ma's avatar Sihua Ma
Browse files

Fix NullPointerException in widget service when checking legacy list widgets

Test: Manually by adding a widget
Bug: 245950570
Change-Id: Ia8fd366b7926fe6992ae7e1f06d58e9af872df8d
parent f30ec4fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2292,7 +2292,7 @@ class AppWidgetServiceImpl extends IAppWidgetService.Stub implements WidgetBacku
        args.arg4 = requestId;
        args.argi1 = widget.appWidgetId;

        if (updateViews.isLegacyListRemoteViews()) {
        if (updateViews != null && updateViews.isLegacyListRemoteViews()) {
            mCallbackHandler.obtainMessage(
                    CallbackHandler.MSG_NOTIFY_UPDATE_APP_WIDGET_DEFERRED,
                    args).sendToTarget();