aboutsummaryrefslogtreecommitdiff
path: root/src/propspec.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-03-19 18:50:24 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-03-19 19:07:10 -0700
commitab99f21ad9b7af5905481d3f56e58c3b320e3303 (patch)
treeec5daefb233dee153c0299449cca3ff80bcbb069 /src/propspec.lisp
parent8e4553269a4d2a14b0160ec9def80cade6648245 (diff)
downloadconsfigurator-ab99f21ad9b7af5905481d3f56e58c3b320e3303.tar.gz
don't try to call COMPLEMENT on nil
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/propspec.lisp')
-rw-r--r--src/propspec.lisp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/propspec.lisp b/src/propspec.lisp
index 8572cae..d1fabd1 100644
--- a/src/propspec.lisp
+++ b/src/propspec.lisp
@@ -336,7 +336,8 @@ apply the elements of REQUIREMENTS in reverse order."
:lambda (proplambda psym)
:desc (lambda (&rest args)
(strcat "Unapply: " (apply #'propdesc psym args)))
- :check (complement (get psym 'check))
+ :check (when-let ((check (get psym 'check)))
+ (complement check))
:hostattrs (lambda (&rest args)
;; run the :HOSTATTRS subroutine but throw away any
;; new hostattrs; when unapplying, the :HOSTATTRS