am 2cca29a3: Merge change 26711 into eclair
Merge commit '2cca29a333eb2d29d4f7cceb5e73313d7857ca82' into eclair-plus-aosp * commit '2cca29a333eb2d29d4f7cceb5e73313d7857ca82': Fix widget stopListening NPE.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user