From f11079b11e98912ed56546eaa300efd06c6eb917 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Thu, 15 Apr 2010 11:47:28 -0700 Subject: [PATCH] Fix 2595902 - NPE in launcher2 This code never worked. If you delete a live folder for an app that's been uninstalled, it would crash. Change-Id: Id91712fada8912addbc4892bd5ae517536fc4f24 --- src/com/android/launcher2/Workspace.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index 8f5bd29a09..b7245a40f3 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher2/Workspace.java @@ -1316,7 +1316,7 @@ public class Workspace extends ViewGroup implements DropTarget, DragSource, Drag final ProviderInfo providerInfo = manager.resolveContentProvider( uri.getAuthority(), 0); - if (providerInfo == null) { + if (providerInfo != null) { for (String packageName: packageNames) { if (packageName.equals(providerInfo.packageName)) { // TODO: This should probably be done on a worker thread