Skip to content

Commit 2cf1cf0

Browse files
committed
Fix possible NPE
Bug: 5494803 Change-Id: I6f9d0076405ab7c99076a1168198c2ee70ad5082
1 parent 16bece0 commit 2cf1cf0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/java/com/android/server/TextServicesManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ public void onServiceConnected(ComponentName name, IBinder service) {
701701
public void onServiceDisconnected(ComponentName name) {
702702
synchronized(mSpellCheckerMap) {
703703
final SpellCheckerBindGroup group = mSpellCheckerBindGroups.get(mSciId);
704-
if (this == group.mInternalConnection) {
704+
if (group != null && this == group.mInternalConnection) {
705705
mSpellCheckerBindGroups.remove(mSciId);
706706
}
707707
}

0 commit comments

Comments
 (0)