diff options
Diffstat (limited to 'lisp/cedet/srecode/getset.el')
-rw-r--r-- | lisp/cedet/srecode/getset.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/cedet/srecode/getset.el b/lisp/cedet/srecode/getset.el index 87266bf2475..a90f3a6d67a 100644 --- a/lisp/cedet/srecode/getset.el +++ b/lisp/cedet/srecode/getset.el @@ -55,8 +55,9 @@ will be derived." (error "No templates for inserting get/set")) ;; Step 1: Try to derive the tag for the class we will use + (semantic-fetch-tags) (let* ((class (or class-in (srecode-auto-choose-class (point)))) - (tagstart (semantic-tag-start class)) + (tagstart (when class (semantic-tag-start class))) (inclass (eq (semantic-current-tag-of-class 'type) class)) (field nil) ) |