Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ac28ded authored by Kurt Partridge's avatar Kurt Partridge
Browse files

Fix NPE

Change-Id: I8a091fb63dab12a0d2ba69e2fe393249bc68d103
parent 3970352e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
            }
        }