2 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
4 prevent a null pointer dereference
6 --- icu/source/i18n/region.cpp.orig
7 +++ icu/source/i18n/region.cpp
10 if ( r->fType == URGN_DEPRECATED && r->preferredValues->size() == 1) {
11 StringEnumeration *pv = r->getPreferredValues(status);
12 + if ( U_FAILURE(status) ) {
17 const UnicodeString *ustr = pv->snext(status);
18 r = static_cast<Region*>(uhash_get(regionIDMap, ustr));