Fix NPE in resetVisibleLimits
* resetVisibleLimits can be called via BootReceiver, which isn't in the Email app process, so it can (and apparently did) get a RemoteException * This causes the query to return null; we have to check for it or we get this NPE Bug: 2564904 Change-Id: I4b75e3c74ac7d1276f609f2fc957afdaa8da2f64
This commit is contained in:
parent
78021cbbf8
commit
f5c3db12de
@ -488,9 +488,11 @@ public class Controller {
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
if (c != null) {
|
||||
c.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}.start();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user