[AF] Add nullcheck for the server database when clearing all server data
There is a small window where it can be null before the sync service is done initializing. Not clearing the data then doesn't matter, since the server db either points to the local db which is cleaned next, or to an in memory server db which doesn't exist yet, so there is nothing to clear. This code is less than ideal and will be refactored along with the database helper and the personalDataManager in the coming weeks. Bug: 883713 Change-Id: I9e754985bf5c14750100dee57efe4ed1a3e252d8 Reviewed-on: https://chromium-review.googlesource.com/1231916Reviewed-by:Fabio Tirelo <ftirelo@chromium.org> Commit-Queue: Sebastien Seguin-Gagnon <sebsg@chromium.org> Cr-Commit-Position: refs/heads/master@{#592158}
Showing
Please register or sign in to comment