Fix NPE in dumpsys logs.

Bug: 67460310
Bug: 66967700

Test: adb shell dumpsys vrmanager

Change-Id: I008717663dd5ae4fe99ca62f631794a56ca2eb12
This commit is contained in:
Ruben Brunk
2017-10-05 13:30:47 -07:00
parent d675f51c72
commit b844956d69

View File

@@ -582,7 +582,7 @@ public class VrManagerService extends SystemService implements EnabledComponentC
pw.println("Persistent VR mode is currently: " +
((mPersistentVrModeEnabled) ? "enabled" : "disabled"));
pw.println("Currently bound VR listener service: "
+ ((mCurrentVrService == null)
+ ((mCurrentVrCompositorService == null)
? "None" : mCurrentVrCompositorService.getComponent().flattenToString()));
pw.println("Currently bound VR compositor service: "
+ ((mCurrentVrCompositorService == null)