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

Commit 47474439 authored by Piotr Wilczyński's avatar Piotr Wilczyński Committed by Automerger Merge Worker
Browse files

Merge "Fix NPE in requestPowerState when displayPowerController is null" into main am: daf616ad

parents 07c82439 daf616ad
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -4337,10 +4337,12 @@ public final class DisplayManagerService extends SystemService {
                    if ((flags & DisplayDeviceInfo.FLAG_NEVER_BLANK) == 0) {
                        final DisplayPowerControllerInterface displayPowerController =
                                mDisplayPowerControllers.get(id);
                        if (displayPowerController != null) {
                            ready &= displayPowerController.requestPowerState(request,
                                    waitForNegativeProximity);
                        }
                    }
                }

                return ready;
            }