Merge "Fix seg faul when parsing invalid <plurals>"
This commit is contained in:
committed by
Android (Google) Code Review
commit
975c6e2d26
@@ -1637,7 +1637,9 @@ bool ResourceParser::ParsePlural(xml::XmlPullParser* parser,
|
||||
if (!(plural->values[index] = ParseXml(
|
||||
parser, android::ResTable_map::TYPE_STRING, kNoRawString))) {
|
||||
error = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
plural->values[index]->SetSource(item_source);
|
||||
|
||||
} else if (!ShouldIgnoreElement(element_namespace, element_name)) {
|
||||
|
||||
Reference in New Issue
Block a user