Merge change 26711 into eclair

* changes:
  Fix widget stopListening NPE.
This commit is contained in:
Android (Google) Code Review
2009-09-23 19:55:14 -04:00

View File

@@ -473,8 +473,10 @@ class AppWidgetService extends IAppWidgetService.Stub
public void stopListening(int hostId) {
synchronized (mAppWidgetIds) {
Host host = lookupHostLocked(getCallingUid(), hostId);
host.callbacks = null;
pruneHostLocked(host);
if (host != null) {
host.callbacks = null;
pruneHostLocked(host);
}
}
}