]> git.eshelyaron.com Git - emacs.git/commitdiff
semantic: Check if slot is bound
authorEric Ludlam <zappo@gnu.org>
Wed, 26 Nov 2014 15:37:28 +0000 (10:37 -0500)
committerDavid Engster <deng@randomsample.de>
Mon, 23 Jan 2017 20:51:10 +0000 (21:51 +0100)
* lisp/cedet/semantic/analyze.el (semantic-analyze-show): Protect
  against unbound error slot.

lisp/cedet/semantic/analyze.el

index a8cd95d679393f327120dc634edfe3e5170380c1..70a5bad97c50433b4ef086b5aa8abd88903c554f 100644 (file)
@@ -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: ")