diff options
author | 2025-03-12 09:42:28 -0700 | |
---|---|---|
committer | 2025-03-12 09:42:28 -0700 | |
commit | 67fc58337340df3f35794e0eff5884d353646197 (patch) | |
tree | 3c1df4c56aba8756a8476b7c6c71c749fd16beda /libs/androidfw/Asset.cpp | |
parent | 1b4bce34a0f3f6d1b7da0c8167318ea582a5fe93 (diff) | |
parent | 2576ad70870bd2b6c710072fd73dcd68e4637d19 (diff) |
Merge "Fix incorrect NULL check in IncFsFileMap reference assertions" into main am: 2576ad7087
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3526790
Change-Id: I2f70c06fa238003ba8e97bf5c469ef4d872857a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'libs/androidfw/Asset.cpp')
-rw-r--r-- | libs/androidfw/Asset.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/androidfw/Asset.cpp b/libs/androidfw/Asset.cpp index 5a4cff0c319e..4e820b6857a1 100644 --- a/libs/androidfw/Asset.cpp +++ b/libs/androidfw/Asset.cpp @@ -453,7 +453,7 @@ status_t _FileAsset::openChunk(incfs::IncFsFileMap&& dataMap, base::unique_fd fd { assert(mFp == NULL); // no reopen assert(!mMap.has_value()); - assert(dataMap != NULL); + assert(dataMap.data()); mMap = std::move(dataMap); mStart = -1; // not used @@ -798,7 +798,7 @@ status_t _CompressedAsset::openChunk(incfs::IncFsFileMap&& dataMap, size_t uncom { assert(mFd < 0); // no re-open assert(!mMap.has_value()); - assert(dataMap != NULL); + assert(dataMap.data()); mMap = std::move(dataMap); mStart = -1; // not used |