Fix NPE bug caused by a failed Remap.

Cherrypick a change that fixes an error in MemoryMappedFile::Remap.
Essentially, that error meant that a previously valid mapping could
become invalid if Remap were to fail.

This is a cherrypick of cl/448387045.

Bug: 232273174
Test: builds
Change-Id: If794d820583dad347edc319ca72cc8ecf773a100
2 files changed
tree: 8065624dfae73db2a4289699d5a0253b0797c7ea
  1. icing/
  2. java/
  3. nativeLib/
  4. proto/
  5. .gitignore
  6. Android.bp
  7. AndroidManifest.xml
  8. build.gradle
  9. CMakeLists.txt
  10. CONTRIBUTING.md
  11. LICENSE
  12. METADATA
  13. MODULE_LICENSE_APACHE2
  14. OWNERS
  15. README.md
  16. synced_AOSP_CL_number.txt
  17. TEST_MAPPING
README.md

Icing Search Library

Icing is a fast, embedded, mobile-friendly full-text-search library written in C++.

This is not an officially supported Google product.