emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] scratch/last-cedet-merge ebc8418 03/11: semantic: Check if


From: David Engster
Subject: [Emacs-diffs] scratch/last-cedet-merge ebc8418 03/11: semantic: Check if slot is bound
Date: Mon, 23 Jan 2017 21:13:48 +0000 (UTC)

branch: scratch/last-cedet-merge
commit ebc8418fefd4ab5f3c89da209ef903a64ffa0484
Author: Eric Ludlam <address@hidden>
Commit: David Engster <address@hidden>

    semantic: Check if slot is bound
    
    * lisp/cedet/semantic/analyze.el (semantic-analyze-show): Protect
      against unbound error slot.
---
 lisp/cedet/semantic/analyze.el |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/cedet/semantic/analyze.el b/lisp/cedet/semantic/analyze.el
index a8cd95d..70a5bad 100644
--- a/lisp/cedet/semantic/analyze.el
+++ b/lisp/cedet/semantic/analyze.el
@@ -804,7 +804,8 @@ Use BUFF as a source of override methods."
   (semantic-analyze-princ-sequence (oref context prefix) "Prefix: " )
   (semantic-analyze-princ-sequence (oref context prefixclass) "Prefix Classes: 
")
   (semantic-analyze-princ-sequence (oref context prefixtypes) "Prefix Types: ")
-  (semantic-analyze-princ-sequence (oref context errors) "Encountered Errors: 
")
+  (semantic-analyze-princ-sequence (when (slot-boundp context 'errors) (oref 
context errors))
+                                  "Encountered Errors: ")
   (princ "--------\n")
   ;(semantic-analyze-princ-sequence (oref context scopetypes) "Scope Types: ")
   ;(semantic-analyze-princ-sequence (oref context scope) "Scope: ")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]