diff options
author | Adam Lesinski <adamlesinski@google.com> | 2014-08-15 13:59:02 -0700 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2014-08-15 14:01:43 -0700 |
commit | 2cb761e3ddb9d68ab430013e9cd15ecaab9fbc62 (patch) | |
tree | 2bd700b1bc3ae8d3855103c1a82c229d5d79e131 /tools/aapt/Command.cpp | |
parent | 4482e4bb8d1f5fe586b641bc3d6298dc7b8fee80 (diff) |
Fix assumption about DynamicRefTable in aapt
Packages without any resources should not expect to have
a DynamicRefTable.
Bug:16895517
Bug:17056720
Change-Id: Id006f6bdbf08f30505f6ba5982bc9d1b09db0f0a
Diffstat (limited to 'tools/aapt/Command.cpp')
-rw-r--r-- | tools/aapt/Command.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/aapt/Command.cpp b/tools/aapt/Command.cpp index 41102fe7491d..c74a3730bcba 100644 --- a/tools/aapt/Command.cpp +++ b/tools/aapt/Command.cpp @@ -764,12 +764,9 @@ int doDump(Bundle* bundle) return 1; } + // The dynamicRefTable can be null if there are no resources for this asset cookie. + // This fine. const DynamicRefTable* dynamicRefTable = res.getDynamicRefTableForCookie(assetsCookie); - if (dynamicRefTable == NULL) { - fprintf(stderr, "ERROR: failed to find dynamic reference table for asset cookie %d\n", - assetsCookie); - return 1; - } Asset* asset = NULL; |