CronetUrlRequest#getStatus checks whether there is a native CronetURLRequestAdapter before calling into the native stack. However, there is a change that made startInternal() asynchronous (https://chromium.googlesource.com/chromium/src/+/11a0bbd6293dffc9df4c4fc8f8e80887c1f01451)when there is an upload. If that's the case, we can get a getStatus() right after start() when the native adapter is initialized but not the underlying net::URLRequest. This will result in a crash when we call url_request_->GetLoadStatus(). We should do a null check.
internal bug: b/28367783.
Comment 1 by bugdroid1@chromium.org
, Apr 27 2016