Fixes NPE in CarrierTextController
The bug was observable when the device had security (PIN, etc.). Test: Manual. Installed ThemePicker and changed themes. Change-Id: I7a086137f0acfad82cee312ac0521ca15738858b Fixes: 124013078
This commit is contained in:
@@ -299,8 +299,9 @@ public class CarrierTextController {
|
||||
displayText.toString().split(mSeparator.toString()),
|
||||
anySimReadyAndInService && !missingSimsWithSubs,
|
||||
subsIds);
|
||||
if (mCarrierTextCallback != null) {
|
||||
handler.post(() -> mCarrierTextCallback.updateCarrierInfo(info));
|
||||
final CarrierTextCallback callback = mCarrierTextCallback;
|
||||
if (callback != null) {
|
||||
handler.post(() -> callback.updateCarrierInfo(info));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user