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

Commit 86e3e22b authored by Romain Guy's avatar Romain Guy
Browse files

Prevent NPE in HardwareRenderer

Bug #5169815

Change-Id: I168b61f3a6cea679e455cf28282b69bb7f3072e5
parent 302a9df1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -718,9 +718,11 @@ public abstract class HardwareRenderer {
                if (!createSurface(holder)) {
                    return;
                }
                if (mCanvas != null) {
                    setEnabled(true);
                }
            }
        }

        private boolean createSurface(SurfaceHolder holder) {
            mEglSurface = sEgl.eglCreateWindowSurface(sEglDisplay, sEglConfig, holder, null);