File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
policy/src/com/android/internal/policy/impl/keyguard Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -667,8 +667,12 @@ private int getLayoutIdFor(SecurityMode securityMode) {
667667 private void addWidget (int appId ) {
668668 AppWidgetManager appWidgetManager = AppWidgetManager .getInstance (mContext );
669669 AppWidgetProviderInfo appWidgetInfo = appWidgetManager .getAppWidgetInfo (appId );
670- AppWidgetHostView view = getAppWidgetHost ().createView (mContext , appId , appWidgetInfo );
671- addWidget (view );
670+ if (appWidgetInfo != null ) {
671+ AppWidgetHostView view = getAppWidgetHost ().createView (mContext , appId , appWidgetInfo );
672+ addWidget (view );
673+ } else {
674+ Log .w (TAG , "AppWidgetInfo was null; not adding widget id " + appId );
675+ }
672676 }
673677
674678 private void maybePopulateWidgets () {
You can’t perform that action at this time.
0 commit comments