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

Commit 8ec350e2 authored by Evisceration's avatar Evisceration Committed by Steve Kondik
Browse files

services: AssetAtlasService: prevent IndexOutOfBoundsException

Change-Id: Ie48435bf41c6c9738a4f87045d018c03fc612c35
parent 184b72bd
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -391,6 +391,11 @@ public class AssetAtlasService extends IAssetAtlas.Stub {
            }
        }

        if (results.size() == 0) {
            if (DEBUG_ATLAS) Log.w(LOG_TAG, "No atlas configuration found!");
            return null;
        }

        // Maximize the number of packed bitmaps, minimize the texture size
        Collections.sort(results, new Comparator<WorkerResult>() {
            @Override