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

Commit 712be76e authored by Nikita Ioffe's avatar Nikita Ioffe
Browse files

Call populateActivePackagesCacheIfNeeded in isApexSupported

Otherwise isApexSupported() might crash with NPE

Test: n/a
Change-Id: I8438569c695c928749d7d61f4d3a5253a94d9a57
parent 388dc11c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -223,6 +223,7 @@ class ApexManager {
     * @return true if APEX packages can be managed on this device, false otherwise.
     */
    boolean isApexSupported() {
        populateActivePackagesCacheIfNeeded();
        // There is no system-wide property available to check if APEX are flattened and hence can't
        // be updated. In absence of such property, we assume that if we didn't index APEX packages
        // since they were flattened, no APEX management should be possible.