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

Commit 03c3abba authored by Jack Yu's avatar Jack Yu
Browse files

Fixed crash when UUID string is empty

Added empty string check.

Bug: 239607619
Test: atest SubscriptionInfoTest
Change-Id: I2d7867c458d83301b6e3558bdc468458fcd13ffd
parent d41cf351
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1527,7 +1527,7 @@ public class SubscriptionInfo implements Parcelable {
         */
        @NonNull
        public Builder setGroupUuid(@Nullable String groupUuid) {
            mGroupUuid = groupUuid == null ? null : ParcelUuid.fromString(groupUuid);
            mGroupUuid = TextUtils.isEmpty(groupUuid) ? null : ParcelUuid.fromString(groupUuid);
            return this;
        }