Skip to content

Commit

Permalink
Check for empty entry values
Browse files Browse the repository at this point in the history
Fix an issue with AGP version 8.3
  • Loading branch information
mathroule committed Apr 11, 2024
1 parent ea1bc84 commit f5632e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/apktools/apkresources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def get_resource_key(res_id, xml_format=false)
end

entry = res_spec.types.entries[res_index]
if entry == nil
if entry == nil || entry.values.empty?
# There is no entry in our table for this resource
puts "Could not find #{res_spec.types.id} ResType chunk" if DEBUG
return nil
Expand Down

0 comments on commit f5632e8

Please sign in to comment.