ICU-1953 clean up code for heap allocation failure hadling.

X-SVN-Rev: 9088
This commit is contained in:
Andy Heninger 2002-07-11 01:38:38 +00:00
parent f56bfccab5
commit 6ac9e67aa2

View File

@ -188,10 +188,10 @@ RBBIRuleBuilder::createRuleBasedBreakIterator( const UnicodeString &rules,
// and list of all Unicode Sets referenced by the rules.
//
RBBIRuleBuilder builder(rules, parseError, status);
builder.fScanner->parse();
if (U_FAILURE(status)) {
return NULL;
}
builder.fScanner->parse();
//
// UnicodeSet processing.