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:
Dianne Hackborn
2010-12-03 13:09:12 -08:00
parent 189ee18d6c
commit 87fc308282

View File

@ -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");
}
}
}