8233137: runtime/ErrorHandling/VeryEarlyAssertTest.java fails after 8232080
Reviewed-by: stuefe, iignatyev, mchung
--- a/src/hotspot/share/utilities/vmError.cpp Tue Oct 29 12:52:03 2019 -0700
+++ b/src/hotspot/share/utilities/vmError.cpp Tue Oct 29 13:52:04 2019 -0700
@@ -128,12 +128,14 @@
static void print_bug_submit_message(outputStream *out, Thread *thread) {
if (out == NULL) return;
- out->print_raw_cr("# If you would like to submit a bug report, please visit:");
- out->print_raw ("# ");
const char *url = Arguments::java_vendor_url_bug();
if (url == NULL || *url == '\0')
url = JDK_Version::runtime_vendor_vm_bug_url();
- out->print_raw_cr(url);
+ if (url != NULL && *url != '\0') {
+ out->print_raw_cr("# If you would like to submit a bug report, please visit:");
+ out->print_raw ("# ");
+ out->print_raw_cr(url);
+ }
// If the crash is in native code, encourage user to submit a bug to the
// provider of that code.
if (thread && thread->is_Java_thread() &&