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

Commit 4876191c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Checks for null id on LocusId constructor."

parents f61de8f4 85e2b01a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -37,9 +37,11 @@ public final class LocusId implements Parcelable {

    /**
     * Default constructor.
     *
     * @throws IllegalArgumentException if {@code id} is empty or {@code null}.
     */
    public LocusId(@NonNull String id) {
        mId = Preconditions.checkNotNull(id);
        mId = Preconditions.checkStringNotEmpty(id, "id cannot be empty");
    }

    /**