Merge "Ensure configuration is not null."
This commit is contained in:
committed by
Android (Google) Code Review
commit
1e3897546b
@@ -1902,8 +1902,9 @@ public final class DisplayManagerService extends SystemService {
|
||||
if (displayDevice == null) {
|
||||
return;
|
||||
}
|
||||
if (mLogicalDisplayMapper.getDisplayLocked(displayDevice)
|
||||
.getDisplayInfoLocked().type == Display.TYPE_INTERNAL) {
|
||||
if (mLogicalDisplayMapper.getDisplayLocked(displayDevice) != null
|
||||
&& mLogicalDisplayMapper.getDisplayLocked(displayDevice)
|
||||
.getDisplayInfoLocked().type == Display.TYPE_INTERNAL && c != null) {
|
||||
FrameworkStatsLog.write(FrameworkStatsLog.BRIGHTNESS_CONFIGURATION_UPDATED,
|
||||
c.getCurve().first,
|
||||
c.getCurve().second,
|
||||
|
||||
Reference in New Issue
Block a user