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

Commit 783e2b23 authored by Kenneth Ford's avatar Kenneth Ford Committed by Android (Google) Code Review
Browse files

Merge "Fixes NullPointerException if display address is null" into main

parents 6b6eddb7 bc251e7a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -241,7 +241,7 @@ public class WindowAreaComponentImpl implements WindowAreaComponent,
        for (int i = 0; i < displays.length; i++) {
            DisplayAddress.Physical address =
                    (DisplayAddress.Physical) displays[i].getAddress();
            if (mRearDisplayAddress == address.getPhysicalDisplayId()) {
            if (address != null && mRearDisplayAddress == address.getPhysicalDisplayId()) {
                rearDisplayMetrics = new DisplayMetrics();
                final Display rearDisplay = displays[i];