OLD | NEW |
1 Index: source/common/ubrk.cpp | 1 Index: source/common/ubrk.cpp |
2 =================================================================== | 2 =================================================================== |
3 --- source/common/ubrk.cpp (revision 120256) | 3 --- source/common/ubrk.cpp (revision 120256) |
4 +++ source/common/ubrk.cpp (working copy) | 4 +++ source/common/ubrk.cpp (working copy) |
5 @@ -166,6 +166,13 @@ | 5 @@ -166,6 +166,13 @@ |
6 int32_t textLength, | 6 int32_t textLength, |
7 UErrorCode* status) | 7 UErrorCode* status) |
8 { | 8 { |
9 + if (bi == NULL) { | 9 + if (bi == NULL) { |
10 + if (U_SUCCESS(*status)) { | 10 + if (U_SUCCESS(*status)) { |
(...skipping 12 matching lines...) Expand all Loading... |
23 + if (bi == NULL) { | 23 + if (bi == NULL) { |
24 + if (U_SUCCESS(*status)) { | 24 + if (U_SUCCESS(*status)) { |
25 + *status = U_ILLEGAL_ARGUMENT_ERROR; | 25 + *status = U_ILLEGAL_ARGUMENT_ERROR; |
26 + } | 26 + } |
27 + return; | 27 + return; |
28 + } | 28 + } |
29 + | 29 + |
30 RuleBasedBreakIterator *brit = (RuleBasedBreakIterator *)bi; | 30 RuleBasedBreakIterator *brit = (RuleBasedBreakIterator *)bi; |
31 brit->RuleBasedBreakIterator::setText(text, *status); | 31 brit->RuleBasedBreakIterator::setText(text, *status); |
32 } | 32 } |
OLD | NEW |