checking against NULL pointer for source info in print-exception

This commit is contained in:
Alex Shinn 2010-07-16 00:23:33 +09:00
parent d9017cc20e
commit 4588874b96

2
sexp.c
View file

@ -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))) {
ls = sexp_bytecode_name(
sexp_procedure_code(sexp_exception_procedure(exn)));
if (sexp_symbolp(ls)) {
if (ls && sexp_symbolp(ls)) {
sexp_write_string(ctx, " in ", out);
sexp_write(ctx, ls, out);
}