mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-07 13:16:36 +02:00
checking against NULL pointer for source info in print-exception
This commit is contained in:
parent
d9017cc20e
commit
4588874b96
1 changed files with 1 additions and 1 deletions
2
sexp.c
2
sexp.c
|
@ -414,7 +414,7 @@ sexp sexp_print_exception_op (sexp ctx sexp_api_params(self, n), sexp exn, sexp
|
||||||
if (sexp_procedurep(sexp_exception_procedure(exn))) {
|
if (sexp_procedurep(sexp_exception_procedure(exn))) {
|
||||||
ls = sexp_bytecode_name(
|
ls = sexp_bytecode_name(
|
||||||
sexp_procedure_code(sexp_exception_procedure(exn)));
|
sexp_procedure_code(sexp_exception_procedure(exn)));
|
||||||
if (sexp_symbolp(ls)) {
|
if (ls && sexp_symbolp(ls)) {
|
||||||
sexp_write_string(ctx, " in ", out);
|
sexp_write_string(ctx, " in ", out);
|
||||||
sexp_write(ctx, ls, out);
|
sexp_write(ctx, ls, out);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue