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

Commit 3030b865 authored by Fiona Campbell's avatar Fiona Campbell Committed by Automerger Merge Worker
Browse files

Merge "Null check for logicaldisplay" into sc-dev am: fca58882

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15403077

Change-Id: I8f0d0993eef4ddfb612215c042239a72323af448
parents 357769d6 fca58882
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3285,6 +3285,9 @@ public final class DisplayManagerService extends SystemService {

            synchronized (mSyncRoot) {
                final LogicalDisplay display = mLogicalDisplayMapper.getDisplayLocked(displayId);
                if (display == null) {
                    return null;
                }
                final DisplayDevice device = display.getPrimaryDisplayDeviceLocked();
                if (device == null) {
                    return null;