ICU-20863 Regex Named Capture map, add a missing nullptr check.
This commit is contained in:
parent
84f6735fde
commit
e94657e614
@ -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…
Reference in New Issue
Block a user