From a80ea59cc108482b0ffcd0d280012fefd64aa698 Mon Sep 17 00:00:00 2001 From: Joan Torres Lopez Date: Mon, 9 Mar 2026 15:22:07 +0100 Subject: [PATCH] When updating default service, guard _smartcardManager if it's not set. --- enforce-smartcard-at-unlock.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enforce-smartcard-at-unlock.patch b/enforce-smartcard-at-unlock.patch index ffe2316..b4ade2c 100644 --- a/enforce-smartcard-at-unlock.patch +++ b/enforce-smartcard-at-unlock.patch @@ -74,7 +74,7 @@ index 72561daab..6b92e3564 100644 _updateDefaultService() { - if (this._settings.get_boolean(PASSWORD_AUTHENTICATION_KEY)) -+ if (this._smartcardManager.loggedInWithToken()) ++ if (this._smartcardManager?.loggedInWithToken()) + this._defaultService = SMARTCARD_SERVICE_NAME; + else if (this._settings.get_boolean(PASSWORD_AUTHENTICATION_KEY)) this._defaultService = PASSWORD_SERVICE_NAME;