mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-20863 Regex Named Capture map, add a missing nullptr check.
This commit is contained in:
parent
84f6735fde
commit
e94657e614
1 changed files with 1 additions and 1 deletions
|
@ -850,7 +850,7 @@ void RegexPattern::dumpPattern() const {
|
|||
}
|
||||
|
||||
printf("Named Capture Groups:\n");
|
||||
if (uhash_count(fNamedCaptureMap) == 0) {
|
||||
if (!fNamedCaptureMap || uhash_count(fNamedCaptureMap) == 0) {
|
||||
printf(" None\n");
|
||||
} else {
|
||||
int32_t pos = UHASH_FIRST;
|
||||
|
|
Loading…
Add table
Reference in a new issue