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

Commit 6c5d4a0b authored by James Willcox's avatar James Willcox
Browse files

Add a missing null check to BeginGetCredentialOption

Bug: 262614389
Test: CTS
Change-Id: I48f7932a0da4f941871eeebaa16955f3711931a8
parent 4687a546
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -116,12 +116,12 @@ public class BeginGetCredentialOption implements Parcelable {
     * @param id the unique id associated with this option
     * @param type               the requested credential type
     * @param candidateQueryData the request candidateQueryData
     * @throws IllegalArgumentException If type is empty.
     * @throws IllegalArgumentException If id or type is empty.
     */
    public BeginGetCredentialOption(
            @NonNull String id, @NonNull String type,
            @NonNull Bundle candidateQueryData) {
        mId = id;
        mId = Preconditions.checkStringNotEmpty(id, "id must not be empty");
        mType = Preconditions.checkStringNotEmpty(type, "type must not be empty");
        Bundle bundle = new Bundle();
        bundle.putAll(candidateQueryData);