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

Commit dcad040a authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE when creating mirror displays w/o VDM" into main

parents f2779a3f 05b29848
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1682,7 +1682,7 @@ public final class DisplayManagerService extends SystemService {
            return checkCallingPermission(ADD_MIRROR_DISPLAY, "canCreateMirrorDisplays");
        }
        try {
            return virtualDevice.canCreateMirrorDisplays();
            return virtualDevice != null && virtualDevice.canCreateMirrorDisplays();
        } catch (RemoteException e) {
            Slog.e(TAG, "Unable to query virtual device for permissions", e);
            return false;