There is a path that clean up is called before stop call on HealthService
mHandler could be set to null
bug
16784750
Change-Id: Ie931fa502cf82d21c6bf97a8dc7035e5a1ed4b2e
}
protected boolean stop() {
- mHandler.removeCallbacksAndMessages(null);
- Looper looper = mHandler.getLooper();
- if (looper != null) {
- looper.quit();
+ if (mHandler != null) {
+ mHandler.removeCallbacksAndMessages(null);
+ Looper looper = mHandler.getLooper();
+ if (looper != null) {
+ looper.quit();
+ }
}
cleanupApps();
return true;