| commit | f6990d3f61b37e15d0320ef60d2d66535fadddc0 | [log] |
|---|---|---|
| author | Eike Rathke <erack@redhat.com> | Fri Sep 29 14:25:33 2017 +0200 |
| committer | Eike Rathke <erack@redhat.com> | Fri Sep 29 14:26:13 2017 +0200 |
| tree | ccbdc2a379fd668b61b4ce080682004118e74172 | |
| parent | c1520da5904b06d0c246362594c8b5d251f63f8a [diff] |
Throw exception also in case an unexpected rBreakType was passed Change-Id: I331e12ab5115401b9fa87e1f0f2be51f33ccbc75
diff --git a/i18npool/source/breakiterator/breakiterator_unicode.cxx b/i18npool/source/breakiterator/breakiterator_unicode.cxx index ac05a25..3e31c36 100644 --- a/i18npool/source/breakiterator/breakiterator_unicode.cxx +++ b/i18npool/source/breakiterator/breakiterator_unicode.cxx
@@ -289,7 +289,7 @@ void SAL_CALL BreakIterator_Unicode::loadICUBreakIterator(const css::lang::Local pBI.reset( icu::BreakIterator::createLineInstance(icuLocale, status) ); break; } if ( !U_SUCCESS(status) ) { if ( !U_SUCCESS(status) || !pBI ) { throw uno::RuntimeException(); } icuBI->mpValue.reset( new BI_ValueData);