Check the frame for null only if the reader is null
This change moves the frame check inside the reader check to address cases when GamepadSharedMemoryReader::Start() is called again after Stop(), but the frame is null. Since the frame parameter is only used when creating a new instance of GamepadSharedMemoryReader, the check was moved inside the corresponding condition. Bug: 864557 Change-Id: I7b32e82f5c79af2007b211cf80cff43ff33be2c9 Reviewed-on: https://chromium-review.googlesource.com/1141156Reviewed-by:Matt Reynolds <mattreynolds@chromium.org> Reviewed-by:
Reilly Grant <reillyg@chromium.org> Commit-Queue: Oksana Zhuravlova <oksamyt@chromium.org> Cr-Commit-Position: refs/heads/master@{#576095}
Showing
Please register or sign in to comment