mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Fix NPE"
This commit is contained in:
commit
a5bfac5bec
@ -894,7 +894,7 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
|||||||
// Check that expected word matches.
|
// Check that expected word matches.
|
||||||
if (oldLogUnit != null) {
|
if (oldLogUnit != null) {
|
||||||
final String oldLogUnitWord = oldLogUnit.getWord();
|
final String oldLogUnitWord = oldLogUnit.getWord();
|
||||||
if (!oldLogUnitWord.equals(expectedWord)) {
|
if (oldLogUnitWord != null && !oldLogUnitWord.equals(expectedWord)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user