From 321c6f66987b4f5ab0f1fa294489c25549a45451 Mon Sep 17 00:00:00 2001
From: rtoy <rtoy>
Date: Fri, 12 Mar 2010 11:00:33 +0000
Subject: [PATCH] In FUNCTION-LAMBDA-EXPRESSION, COMPILED-DEBUG-INFO-SOURCE can
 return NIL, so check for that before trying to access the DEBUG-SOURCE-FROM.

---
 code/eval.lisp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/code/eval.lisp b/code/eval.lisp
index e7bfb8413..ec2201ae9 100644
--- a/code/eval.lisp
+++ b/code/eval.lisp
@@ -5,7 +5,7 @@
 ;;; Carnegie Mellon University, and has been placed in the public domain.
 ;;;
 (ext:file-comment
-  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/eval.lisp,v 1.45 2009/06/11 16:03:57 rtoy Rel $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/eval.lisp,v 1.46 2010/03/12 11:00:33 rtoy Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -299,7 +299,8 @@
 	     (info (kernel:%code-debug-info code)))
 	(if info
 	    (let ((source (first (c::compiled-debug-info-source info))))
-	      (cond ((and (eq (c::debug-source-from source) :lisp)
+	      (cond ((and source
+			  (eq (c::debug-source-from source) :lisp)
 			  (eq (c::debug-source-info source) fun))
 		     (values (second (svref (c::debug-source-name source) 0))
 			     nil name))
-- 
GitLab