Fix possible NPE
Bug: 5494803 Change-Id: I6f9d0076405ab7c99076a1168198c2ee70ad5082
This commit is contained in:
@ -701,7 +701,7 @@ public class TextServicesManagerService extends ITextServicesManager.Stub {
|
||||
public void onServiceDisconnected(ComponentName name) {
|
||||
synchronized(mSpellCheckerMap) {
|
||||
final SpellCheckerBindGroup group = mSpellCheckerBindGroups.get(mSciId);
|
||||
if (this == group.mInternalConnection) {
|
||||
if (group != null && this == group.mInternalConnection) {
|
||||
mSpellCheckerBindGroups.remove(mSciId);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user