ICU-23062 Added null check in one spot in genrb where we know we've seen crashes.

This commit is contained in:
Rich Gillam 2025-03-04 18:09:25 -08:00 committed by Markus Scherer
parent 9cc28a6428
commit faa80a2972

View file

@ -297,7 +297,7 @@ static char *getInvariantString(ParseState* state, uint32_t *line, struct UStrin
if(!uprv_isInvariantUString(tokenValue->fChars, tokenValue->fLength)) {
*status = U_INVALID_FORMAT_ERROR;
error(*line, "invariant characters required for table keys, binary data, etc.");
error((line == nullptr) ? 0 : *line, "invariant characters required for table keys, binary data, etc.");
return nullptr;
}