Throw exception also in case an unexpected rBreakType was passed
Change-Id: I331e12ab5115401b9fa87e1f0f2be51f33ccbc75
This commit is contained in:
@@ -289,7 +289,7 @@ void SAL_CALL BreakIterator_Unicode::loadICUBreakIterator(const css::lang::Local
|
|||||||
pBI.reset( icu::BreakIterator::createLineInstance(icuLocale, status) );
|
pBI.reset( icu::BreakIterator::createLineInstance(icuLocale, status) );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ( !U_SUCCESS(status) ) {
|
if ( !U_SUCCESS(status) || !pBI ) {
|
||||||
throw uno::RuntimeException();
|
throw uno::RuntimeException();
|
||||||
}
|
}
|
||||||
icuBI->mpValue.reset( new BI_ValueData);
|
icuBI->mpValue.reset( new BI_ValueData);
|
||||||
|
Reference in New Issue
Block a user