diff --git a/lib/apktools/apkresources.rb b/lib/apktools/apkresources.rb index 0085ed1..aae5ec1 100755 --- a/lib/apktools/apkresources.rb +++ b/lib/apktools/apkresources.rb @@ -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