google / EarlGrey

:tea: iOS UI Automation Test Framework
http://google.github.io/EarlGrey/
Apache License 2.0
5.62k stars 744 forks source link

Avoid dereferencing a nil value for NSError in GREYWaitForAppToIdleWithTimeoutAndError. #2007

Closed copybara-service[bot] closed 10 months ago

copybara-service[bot] commented 10 months ago

Avoid dereferencing a nil value for NSError in GREYWaitForAppToIdleWithTimeoutAndError.

If someone calls this passing in nil, it can seg-fault and crash. Which doesn't seem very desirable. Instead, just continue and let it return NO for success.