From 9e58d46a8b5454bd78285452f4060d214fdd4454 Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Wed, 10 Feb 2021 15:42:42 -0500 Subject: [PATCH] another fix for 'error during bootstrap' printing --- src/jlapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jlapi.c b/src/jlapi.c index 9d41f1066b99ed..d27f7e03d958ce 100644 --- a/src/jlapi.c +++ b/src/jlapi.c @@ -506,7 +506,7 @@ static int exec_program(char *program) int shown_err = 0; jl_printf(JL_STDERR, "error during bootstrap:\n"); jl_value_t *exc = jl_current_exception(); - jl_value_t *showf = jl_get_function(jl_base_module, "show"); + jl_value_t *showf = jl_base_module ? jl_get_function(jl_base_module, "show") : NULL; if (showf) { jl_value_t *errs = jl_stderr_obj(); if (errs) {