2 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
4 getBuffer handling is tracked upstream as
5 https://unicode-org.atlassian.net/browse/ICU-12378
7 --- icu/source/common/unistr.cpp.orig
8 +++ icu/source/common/unistr.cpp
12 const char16_t *array = getBuffer();
13 + if (array == nullptr) {
16 int32_t len = length();