Merge "Fix exception when path not found." am: 39e706e507 am: dc290141fd am: 0dc0514d82
Original change: https://android-review.googlesource.com/c/platform/development/+/1960330 Change-Id: I9ebb6f71302c7d740e3d7bd8758a4943ef452f5d
This commit is contained in:
committed by
Automerger Merge Worker
commit
d19f5ebd45
@@ -332,7 +332,7 @@ class TraceConverter:
|
||||
# Search for a library with the given basename and build_id anywhere in the symbols directory.
|
||||
@functools.lru_cache(maxsize=None)
|
||||
def GetLibraryByBuildId(self, symbols_dir, basename, build_id):
|
||||
for candidate in self.GlobSymbolsDir(symbols_dir).get(basename):
|
||||
for candidate in self.GlobSymbolsDir(symbols_dir).get(basename, []):
|
||||
info = self.GetLibraryInfo(candidate)
|
||||
if info and info.build_id == build_id:
|
||||
return "/" + str(candidate.relative_to(symbols_dir))
|
||||
|
||||
Reference in New Issue
Block a user