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

Commit e397bf3f authored by Jeff Davidson's avatar Jeff Davidson
Browse files

Fix NPE when parceling getMetadata result.

Bug: 33075886
Test: None (trivial change)
Change-Id: Ie0bb576e7162d405a05a2b8a5798d9480cb3239c
parent df82235f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -81,14 +81,14 @@ public final class GetDownloadableSubscriptionMetadataResult implements Parcelab

    private GetDownloadableSubscriptionMetadataResult(Parcel in) {
        this.result = in.readInt();
        this.subscription = DownloadableSubscription.CREATOR.createFromParcel(in);
        this.subscription = in.readTypedObject(DownloadableSubscription.CREATOR);
        this.detailedCode = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(result);
        this.subscription.writeToParcel(dest, 0);
        dest.writeTypedObject(this.subscription, flags);
        dest.writeInt(detailedCode);
    }