Fix issue #3175809: system_server crash with SEGV_MAPERR (IKXEVEREST-1372)
Don't crash if dump() is called before we have set mDisplay. Change-Id: I0d3d356ff27dbc61353a5b99e348178937d5f4a5
This commit is contained in:
@ -11344,8 +11344,12 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
if (mToBottomApps.size() > 0) {
|
||||
pw.print(" mToBottomApps="); pw.println(mToBottomApps);
|
||||
}
|
||||
pw.print(" DisplayWidth="); pw.print(mDisplay.getWidth());
|
||||
pw.print(" DisplayHeight="); pw.println(mDisplay.getHeight());
|
||||
if (mDisplay != null) {
|
||||
pw.print(" DisplayWidth="); pw.print(mDisplay.getWidth());
|
||||
pw.print(" DisplayHeight="); pw.println(mDisplay.getHeight());
|
||||
} else {
|
||||
pw.println(" NO DISPLAY");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user