Merge "Null check for logicaldisplay" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fca58882db
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user