From aa56e50fe21cd07bc6aab5ceecc2e92288793a8b Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Sat, 12 Nov 2022 09:18:19 +0100 Subject: [PATCH] Raise 'wrong-type-argument' when installing package nil * lisp/emacs-lisp/package-vc.el (package-vc-install): Check if the package is nil. --- lisp/emacs-lisp/package-vc.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el index 62724d398c1..36d17c6116b 100644 --- a/lisp/emacs-lisp/package-vc.el +++ b/lisp/emacs-lisp/package-vc.el @@ -648,6 +648,8 @@ uses `package-vc-heuristic-alist' to guess the backend." (and current-prefix-arg :last-release))))) (package-vc--archives-initialize) (cond + ((null name-or-url) + (signal 'wrong-type-argument nil)) ((and-let* (((stringp name-or-url)) (backend (or backend (package-vc--guess-backend name-or-url)))) (package-vc--unpack -- 2.39.5