Check for null display in DisplayController onDisplayAdded
Bug: 415007177 Test: local + presubmit Flag: EXEMPT bugfix Change-Id: Ic4e9e6156ed565ed86aa25ebbdeda853fb2d8eda
This commit is contained in:
@@ -168,7 +168,10 @@ public class DisplayController implements DesktopVisibilityListener {
|
||||
new DisplayManager.DisplayListener() {
|
||||
@Override
|
||||
public void onDisplayAdded(int displayId) {
|
||||
getOrCreatePerDisplayInfo(displayManager.getDisplay(displayId));
|
||||
Display display = displayManager.getDisplay(displayId);
|
||||
if (display != null) {
|
||||
getOrCreatePerDisplayInfo(display);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user