am f11079b1: Fix 2595902 - NPE in launcher2

This commit is contained in:
Joe Onorato 2010-04-15 16:31:41 -07:00 committed by Android Git Automerger
commit 6710fb92f4
1 changed files with 1 additions and 1 deletions

View File

@ -1316,7 +1316,7 @@ public class Workspace extends ViewGroup implements DropTarget, DragSource, Drag
final ProviderInfo providerInfo = manager.resolveContentProvider( final ProviderInfo providerInfo = manager.resolveContentProvider(
uri.getAuthority(), 0); uri.getAuthority(), 0);
if (providerInfo == null) { if (providerInfo != null) {
for (String packageName: packageNames) { for (String packageName: packageNames) {
if (packageName.equals(providerInfo.packageName)) { if (packageName.equals(providerInfo.packageName)) {
// TODO: This should probably be done on a worker thread // TODO: This should probably be done on a worker thread