summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cider-client.el15
1 files changed, 8 insertions, 7 deletions
diff --git a/cider-client.el b/cider-client.el
index 676cd85b..dfff9565 100644
--- a/cider-client.el
+++ b/cider-client.el
@@ -168,13 +168,14 @@ loaded."
(defun cider-var-info (var)
"Return VAR's info as an alist."
- (let ((val (plist-get (nrepl-send-request-sync
- (list "op" "info"
- "session" (nrepl-current-session)
- "ns" (cider-current-ns)
- "symbol" var))
- :value)))
- (-partition 2 val)))
+ (when var
+ (let ((val (plist-get (nrepl-send-request-sync
+ (list "op" "info"
+ "session" (nrepl-current-session)
+ "ns" (cider-current-ns)
+ "symbol" var))
+ :value)))
+ (-partition 2 val))))
(defun cider-get-var-attr (var attr)
"Return VAR's ATTR."