Skip to content

Commit 48019c6

Browse files
satok16Android Git Automerger
authored andcommitted
am 2cf1cf0: Fix possible NPE
* commit '2cf1cf098513807ffd3420ae106f438e943d0cd8': Fix possible NPE
2 parents 79174b7 + 2cf1cf0 commit 48019c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)