8312078: [PPC] JcmdScale.java Failing on AIX

Reviewed-by: stuefe, tsteele
This commit is contained in:
Deepa Kumari 2023-08-02 14:39:33 +00:00 committed by Tyler Steele
parent 6446792327
commit c1a3f143bf

View File

@ -77,7 +77,7 @@ void NMTDCmd::execute(DCmdSource source, TRAPS) {
return;
}
const char* scale_value = _scale.value();
const char* scale_value = _scale.value() != nullptr ? _scale.value() : "(null)";
size_t scale_unit = get_scale(scale_value);
if (scale_unit == 0) {
output()->print_cr("Incorrect scale value: %s", scale_value);