Merge "Fix exception when path not found." am: 39e706e507 am: dc290141fd am: 0dc0514d82 am: d19f5ebd45
Original change: https://android-review.googlesource.com/c/platform/development/+/1960330 Change-Id: I7679ecfa5cdd338d6965903158b0e762e20f2f1e
This commit is contained in:
committed by
Automerger Merge Worker
commit
1f83fd3e9a
@@ -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