Skip to content

Commit c1a3f14

Browse files
deepa181Tyler Steele
authored andcommitted
8312078: [PPC] JcmdScale.java Failing on AIX
Reviewed-by: stuefe, tsteele
1 parent 6446792 commit c1a3f14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/services/nmtDCmd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void NMTDCmd::execute(DCmdSource source, TRAPS) {
7777
return;
7878
}
7979

80-
const char* scale_value = _scale.value();
80+
const char* scale_value = _scale.value() != nullptr ? _scale.value() : "(null)";
8181
size_t scale_unit = get_scale(scale_value);
8282
if (scale_unit == 0) {
8383
output()->print_cr("Incorrect scale value: %s", scale_value);

0 commit comments

Comments
 (0)