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

Commit 664b6170 authored by Anas Karbila's avatar Anas Karbila Committed by LuK1337
Browse files

Gallery: TileImageView: fix NPE



* GetGLRoot() can return null when the job is still running but the GL has already been detached

Change-Id: Ic58b4752f64390efdf14ca1a33a81a8f77100ee0
Signed-off-by: default avatarAlex Naidis <alex.naidis@linux.com>
parent 893a776e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -476,7 +476,7 @@ public class TileImageView extends GLView {
        synchronized (this) {
            mUploadQueue.push(tile);
        }
        if (mTileUploader.mActive.compareAndSet(false, true)) {
        if (getGLRoot() != null && mTileUploader.mActive.compareAndSet(false, true)) {
            getGLRoot().addOnGLIdleListener(mTileUploader);
        }
    }