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

Commit 17d5c1b1 authored by Tom Marshall's avatar Tom Marshall
Browse files

Parse UUID string with Long.parseLong

Integer.parseInt throws an NPE for values greater than 0x7fffffff.
parent 6b8a3a52
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -216,7 +216,7 @@ public class StorageVolume implements Parcelable {
            return -1;
        }
        try {
            return Integer.parseInt(mUuid.replace("-", ""), 16);
            return (int)Long.parseLong(mUuid.replace("-", ""), 16);
        } catch (NumberFormatException e) {
            return -1;
        }