[Offline indicator v2] Fix NullPointerException
NPE was caused by a line in ToolbarManager where mCanAnimateNativeBrowserControls was used before being set. The fix is to check if null. Also, it might make sense to update the if statement where the feature is checked to make sure we return early if ChromeFeatureList isn't initialized. Otherwise, we end up running feature specific code if CFL isn't initialized. Bug: 1062302 Change-Id: Ieac75c96d285f5768321c6d8425fda4511d0fa4d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2107701 Commit-Queue: Sinan Sahin <sinansahin@google.com> Reviewed-by:Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#751077}
Showing
Please register or sign in to comment