axml: fix IndexError

This commit is contained in:
Ignat Loskutov 2024-09-14 14:37:19 +02:00 committed by GitHub
parent ca11a39eb6
commit 771672e12a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -843,7 +843,7 @@ class AXMLParser:
res = self.sb[name]
# If the result is a (null) string, we need to look it up.
if name <= len(self.m_resourceIDs):
if name < len(self.m_resourceIDs):
attr = self.m_resourceIDs[name]
if attr in public.SYSTEM_RESOURCES['attributes']['inverse']:
res = public.SYSTEM_RESOURCES['attributes']['inverse'][attr].replace("_",