Fix possible NPE

Bug: 5494803
Change-Id: I6f9d0076405ab7c99076a1168198c2ee70ad5082
This commit is contained in:
satok
2011-10-21 15:25:23 +09:00
parent 16bece04bd
commit 2cf1cf0985

View File

@ -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);
}
}