am f8631178: resolved conflicts for merge of 1d99636f to lmp-dev-plus-aosp
* commit 'f8631178ea8d1dab768873b82d6ace96d01f23a7': Don't check for null references.
This commit is contained in:
@@ -212,14 +212,10 @@ int doList(Bundle* bundle)
|
||||
}
|
||||
|
||||
const ResTable& res = assets.getResources(false);
|
||||
if (&res == NULL) {
|
||||
printf("\nNo resource table found.\n");
|
||||
} else {
|
||||
#ifndef HAVE_ANDROID_OS
|
||||
printf("\nResource table:\n");
|
||||
res.print(false);
|
||||
printf("\nResource table:\n");
|
||||
res.print(false);
|
||||
#endif
|
||||
}
|
||||
|
||||
Asset* manifestAsset = assets.openNonAsset("AndroidManifest.xml",
|
||||
Asset::ACCESS_BUFFER);
|
||||
@@ -617,10 +613,7 @@ int doDump(Bundle* bundle)
|
||||
assets.setConfiguration(config);
|
||||
|
||||
const ResTable& res = assets.getResources(false);
|
||||
if (&res == NULL) {
|
||||
fprintf(stderr, "ERROR: dump failed because no resource table was found\n");
|
||||
return 1;
|
||||
} else if (res.getError() != NO_ERROR) {
|
||||
if (res.getError() != NO_ERROR) {
|
||||
fprintf(stderr, "ERROR: dump failed because the resource table is invalid/corrupt.\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user