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

Commit 0d0167e6 authored by Chia-I Wu's avatar Chia-I Wu Committed by android-build-merger
Browse files

surfaceflinger: fix a nullptr dereference am: 0a68b461

am: b111e153

Change-Id: I31ce55db7b94082405d54b730f98c7875c1c85e5
parents 913ed7a9 b111e153
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2700,7 +2700,7 @@ Transform Layer::getTransform() const {
        // for in the transform. We need to mirror this scaling in child surfaces
        // or we will break the contract where WM can treat child surfaces as
        // pixels in the parent surface.
        if (p->isFixedSize()) {
        if (p->isFixedSize() && p->mActiveBuffer != nullptr) {
            int bufferWidth;
            int bufferHeight;
            if ((p->mCurrentTransform & NATIVE_WINDOW_TRANSFORM_ROT_90) == 0) {