Fix NPE
Change-Id: I8a091fb63dab12a0d2ba69e2fe393249bc68d103
This commit is contained in:
parent
3970352ea9
commit
4ac28ded28
1 changed files with 1 additions and 1 deletions
|
@ -894,7 +894,7 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
|||
// Check that expected word matches.
|
||||
if (oldLogUnit != null) {
|
||||
final String oldLogUnitWord = oldLogUnit.getWord();
|
||||
if (!oldLogUnitWord.equals(expectedWord)) {
|
||||
if (oldLogUnitWord != null && !oldLogUnitWord.equals(expectedWord)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue