# HG changeset patch # User Doug Simon # Date 1331918730 -3600 # Node ID 3d91d5d7b166f9e960e8bd15af64c4842a9742a1 # Parent 54819cdcca7f4fd11825da0b1ae211cf3954b4e6 fixed segv encountered while printing system property with a NULL value diff -r 54819cdcca7f -r 3d91d5d7b166 src/share/vm/utilities/ostream.cpp --- a/src/share/vm/utilities/ostream.cpp Fri Mar 16 14:48:15 2012 +0100 +++ b/src/share/vm/utilities/ostream.cpp Fri Mar 16 18:25:30 2012 +0100 @@ -616,9 +616,9 @@ // Print it as a java-style property list. // System properties don't generally contain newlines, so don't bother with unparsing. for (SystemProperty* p = Arguments::system_properties(); p != NULL; p = p->next()) { - xs->text()->print(p->key()); + xs->text()->print(p->key() ? p->key() : ""); xs->text()->print("="); - xs->text()->print_cr(p->value()); + xs->text()->print_cr(p->value() ? p->value() : ""); } xs->tail("properties"); }