From: Darren Hoo Date: Mon, 4 Jul 2011 15:36:38 +0000 (+0200) Subject: * semantic/db.el (semanticdb-file-table-object): Don't bug out on X-Git-Tag: emacs-pretest-24.0.90~104^2~152^2~192 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=60c55439fcdea56b9039ad544a7bf53372440502;p=emacs.git * semantic/db.el (semanticdb-file-table-object): Don't bug out on unconfigured projects if `global-ede-mode' is on. Fixes: debbugs:8092 --- diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog index 75948ef8d18..60d7690a3c8 100644 --- a/lisp/cedet/ChangeLog +++ b/lisp/cedet/ChangeLog @@ -1,3 +1,8 @@ +2011-07-04 Darren Hoo (tiny change) + + * semantic/db.el (semanticdb-file-table-object): Don't bug out on + unconfigured projects if `global-ede-mode' is on (bug#8092). + 2011-07-01 Paul Eggert * semantic.el (semantic-elapsed-time): Rewrite using diff --git a/lisp/cedet/semantic/db.el b/lisp/cedet/semantic/db.el index fa8de392b62..dca1b3bafea 100644 --- a/lisp/cedet/semantic/db.el +++ b/lisp/cedet/semantic/db.el @@ -880,7 +880,7 @@ If file does not have tags available, and DONTLOAD is nil, then load the tags for FILE, and create a new table object for it. DONTLOAD does not affect the creation of new database objects." ;; (message "Object Translate: %s" file) - (when (file-exists-p file) + (when (and file (file-exists-p file)) (let* ((default-directory (file-name-directory file)) (tab (semanticdb-file-table-object-from-hash file)) (fullfile nil))