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

Commit b5f99f87 authored by Jeremy Sim's avatar Jeremy Sim Committed by Automerger Merge Worker
Browse files

Merge "Add null check to Task#equals()" into udc-qpr-dev am: 191f2fd4

parents 95e93a6f 191f2fd4
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -336,6 +336,14 @@ public class Task {

    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }

        if (!(o instanceof Task)) {
            return false;
        }

        // Check that the id matches
        Task t = (Task) o;
        return key.equals(t.key);