Fix 2617318 - NPE in Launcher2.

Applies the fix in change Id91712fa to widgets.

Bug: 2617318
Change-Id: I1e1dac6238a26497eacc23b161df171ae40bb588
This commit is contained in:
Daniel Sandler 2010-05-07 11:49:29 -04:00
parent 68b4182d77
commit e1cc6c3745
1 changed files with 1 additions and 1 deletions

View File

@ -1403,7 +1403,7 @@ public class Workspace extends ViewGroup implements DropTarget, DragSource, Drag
final LauncherAppWidgetInfo info = (LauncherAppWidgetInfo) tag;
final AppWidgetProviderInfo provider =
widgets.getAppWidgetInfo(info.appWidgetId);
if (provider == null) {
if (provider != null) {
for (String packageName: packageNames) {
if (packageName.equals(provider.provider.getPackageName())) {
// TODO: This should probably be done on a worker thread